From d7fe4b1385c630499c33103e0c0ce033f84741b6 Mon Sep 17 00:00:00 2001 From: Theo Truong Date: Wed, 4 Sep 2024 16:52:12 -0600 Subject: [PATCH] # fixed NYC exclude Signed-off-by: Theo Truong --- package.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b91c5c046..b24e62f1d 100644 --- a/package.json +++ b/package.json @@ -55,8 +55,8 @@ "test:integration:helpers": "tap test/integration/helpers/*.test.js", "test:integration:helpers-secure": "tap test/integration/helpers-secure/*.test.js", "test:types": "tsd", - "test:coverage-90": "tap test/{unit,acceptance}/{*,**/*,**/**/*}.test.js --coverage --branches=90 --functions=90 --lines=90 --statements=90 --nyc-arg=\"--exclude=api,lib/OpenSearchAPi.js\"", - "test:coverage-report": "tap test/{unit,acceptance}/{*,**/*,**/**/*}.test.js --coverage --branches=90 --functions=90 --lines=90 --statements=90 --nyc-arg=\"--exclude=api,lib/OpenSearchAPi.js\" && nyc report --reporter=text-lcov > coverage.lcov", + "test:coverage-90": "tap test/{unit,acceptance}/{*,**/*,**/**/*}.test.js --coverage --branches=90 --functions=90 --lines=90 --statements=90", + "test:coverage-report": "tap test/{unit,acceptance}/{*,**/*,**/**/*}.test.js --coverage --branches=90 --functions=90 --lines=90 --statements=90 && nyc report --reporter=text-lcov > coverage.lcov", "test:coverage-ui": "tap test/{unit,acceptance}/{*,**/*,**/**/*}.test.js --coverage --coverage-report=html --nyc-arg=\"--exclude=api\"", "lint": "eslint .", "lint:fix": "eslint . --fix", @@ -136,5 +136,11 @@ "flow": false, "coverage": false, "jobs-auto": true + }, + "nyc": { + "exclude": [ + "api/**", + "lib/OpenSearchAPI.js" + ] } }