Skip to content

Commit d190c3a

Browse files
committed
fix: Correct coverage reporting for node test runner
1 parent 4fb3fe3 commit d190c3a

2 files changed

Lines changed: 5 additions & 42 deletions

File tree

internal/shrinkwrap-extractor/package.json

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
"test": "npm run lint && npm run coverage && npm run depcheck",
2323
"unit": "node --test test/lib/convertToShrinkwrap.js",
2424
"unit-watch": "node --test --watch test/lib/convertToShrinkwrap.js",
25-
"coverage": "nyc node --test test/lib/convertToShrinkwrap.js",
25+
"coverage": "mkdir -p coverage && node --test --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=coverage/lcov.info test/lib/convertToShrinkwrap.js",
2626
"lint": "eslint .",
27-
"depcheck": "depcheck --ignores @ui5/shrinkwrap-extractor,@eslint/js,eslint-config-google,globals,nyc"
27+
"depcheck": "depcheck --ignores @ui5/shrinkwrap-extractor,@eslint/js,eslint-config-google,globals"
2828
},
2929
"keywords": [
3030
"npm",
@@ -43,23 +43,6 @@
4343
"@eslint/js": "^9.39.1",
4444
"depcheck": "^1.4.7",
4545
"eslint-config-google": "^0.14.0",
46-
"globals": "^16.5.0",
47-
"nyc": "^17.1.0"
48-
},
49-
"nyc": {
50-
"reporter": [
51-
"lcov",
52-
"text",
53-
"text-summary"
54-
],
55-
"exclude": [
56-
"coverage/**",
57-
"test/**"
58-
],
59-
"check-coverage": true,
60-
"statements": 80,
61-
"branches": 75,
62-
"functions": 75,
63-
"lines": 80
46+
"globals": "^16.5.0"
6447
}
6548
}

package-lock.json

Lines changed: 2 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)