Skip to content

Commit 47fde0f

Browse files
committed
fix: Correct coverage reporting for node test runner
1 parent a650a1a commit 47fde0f

File tree

2 files changed

+5
-42
lines changed

2 files changed

+5
-42
lines changed

internal/shrinkwrap-extractor/package.json

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
"test": "npm run lint && npm run coverage && npm run depcheck",
2222
"unit": "node --test test/lib/convertToShrinkwrap.js",
2323
"unit-watch": "node --test --watch test/lib/convertToShrinkwrap.js",
24-
"coverage": "nyc node --test test/lib/convertToShrinkwrap.js",
24+
"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",
2525
"lint": "eslint .",
26-
"depcheck": "depcheck --ignores @ui5/shrinkwrap-extractor,@eslint/js,eslint-config-google,globals,nyc"
26+
"depcheck": "depcheck --ignores @ui5/shrinkwrap-extractor,@eslint/js,eslint-config-google,globals"
2727
},
2828
"keywords": [
2929
"npm",
@@ -42,23 +42,6 @@
4242
"@eslint/js": "^9.39.1",
4343
"depcheck": "^1.4.7",
4444
"eslint-config-google": "^0.14.0",
45-
"globals": "^16.5.0",
46-
"nyc": "^17.1.0"
47-
},
48-
"nyc": {
49-
"reporter": [
50-
"lcov",
51-
"text",
52-
"text-summary"
53-
],
54-
"exclude": [
55-
"coverage/**",
56-
"test/**"
57-
],
58-
"check-coverage": true,
59-
"statements": 80,
60-
"branches": 75,
61-
"functions": 75,
62-
"lines": 80
45+
"globals": "^16.5.0"
6346
}
6447
}

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)