Skip to content

Commit dd5d3e1

Browse files
committed
test: migrate from Mocha to Node native test runner with c8 coverage
1 parent 293f613 commit dd5d3e1

File tree

7 files changed

+108
-187
lines changed

7 files changed

+108
-187
lines changed

.mocharc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
},
2828
"scripts": {
2929
"build": "tsdown",
30-
"test": "pnpm build && mocha",
30+
"test": "pnpm build && c8 node --test test/*.test.cjs",
31+
"coverage": "c8 report --reporter=text-lcov",
3132
"typecheck": "tsc --noEmit",
3233
"prepublishOnly": "pnpm build",
3334
"prepare": "husky"
@@ -50,8 +51,8 @@
5051
"@commitlint/cli": "^20.2.0",
5152
"@commitlint/config-conventional": "^20.2.0",
5253
"@types/node": "^25.0.0",
54+
"c8": "^10.1.3",
5355
"husky": "^9.1.7",
54-
"mocha": "^11.7.5",
5556
"mockdate": "^3.0.5",
5657
"safe-buffer": "^5.2.1",
5758
"seedrandom": "^3.0.5",

0 commit comments

Comments
 (0)