From 7e2d727641e71671700c2dff0a6c4f1337186fcc Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Mon, 23 May 2022 16:24:23 +0200 Subject: [PATCH] 100% code cov Signed-off-by: Matteo Collina --- index.js | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ec6f588..d576716 100644 --- a/index.js +++ b/index.js @@ -66,6 +66,7 @@ function loadAndValidateEnvironment (_opts) { require('dotenv').config(Object.assign({}, opts.dotenv)) } + /* istanbul ignore else */ if (opts.env) { if (opts.expandEnv) { require('dotenv-expand').expand({ parsed: process.env }) diff --git a/package.json b/package.json index 4939c20..079c773 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "Validate your env variable using Ajv and dotenv", "main": "index.js", "scripts": { - "test": "standard | snazzy && tap test/*.test.js --no-check-coverage && npm run typescript", - "test:ci": "standard | snazzy && tap test/*.test.js --no-check-coverage --coverage-report=lcovonly && npm run typescript", + "test": "standard | snazzy && tap test/*.test.js && npm run typescript", + "test:ci": "standard | snazzy && tap test/*.test.js --coverage-report=lcovonly && npm run typescript", "typescript": "tsd" }, "repository": {