Skip to content

Commit 1be0774

Browse files
boly38creharmony
authored andcommitted
Fix #19 code coverage using c8
1 parent eca7ac4 commit 1be0774

File tree

4 files changed

+144
-0
lines changed

4 files changed

+144
-0
lines changed

.c8rc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"check-coverage": true,
3+
"lines": 65,
4+
"branches": 65,
5+
"functions": 50,
6+
"statements": 65,
7+
"reporter": ["text-summary", "lcov"]
8+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ logs/
44
package-lock.json
55
node_modules/
66
*.dontpush.*
7+
coverage/

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "src/WebhookServerLauncher.js",
66
"type": "module",
77
"scripts": {
8+
"ci-test": "echo \"ci-test based on .c8rc.json\" && c8 --reporter text --reporter=lcov --lines 66 mocha --unhandled-rejections=strict tests/*.test.js --timeout 50000",
89
"test": "mocha --unhandled-rejections=strict tests/*.test.js",
910
"testAsync": "set ENABLE_ASYNC_TESTS=true&& mocha --unhandled-rejections=strict tests/*.test.js"
1011
},
@@ -38,6 +39,7 @@
3839
"uuid": "^13.0.0"
3940
},
4041
"devDependencies": {
42+
"c8": "^10.1.3",
4143
"chai": "^6.2.0",
4244
"chai-http": "^5.1.2",
4345
"mocha": "^11.7.4",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)