Skip to content

Commit daff350

Browse files
authored
feat: Add code coverage to the test code. (#96)
1 parent 4c65557 commit daff350

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
tags
22
.idea
33
node_modules/
4-
package-lock.json
4+
package-lock.json
5+
6+
coverage

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# We doesn't wan to publish the logo and other
22
assets
3+
4+
coverage

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "lib/index.js",
66
"types": "index.d.ts",
77
"scripts": {
8-
"test": "node --test --allow-natives-syntax",
8+
"test": "c8 node --test --allow-natives-syntax",
99
"test:types": "tsd -f types/types.test-d.ts",
1010
"lint": "biome lint .",
1111
"lint:ci": "biome ci .",
@@ -39,6 +39,10 @@
3939
"devDependencies": {
4040
"@biomejs/biome": "1.9.4",
4141
"@types/node": "^20",
42+
"c8": "^10.1.3",
4243
"tsd": "^0.31.0"
44+
},
45+
"c8": {
46+
"reporter": "lcov"
4347
}
4448
}

0 commit comments

Comments
 (0)