Skip to content

Commit 2627ecd

Browse files
committed
feat: 新增测试覆盖率
1 parent b05e380 commit 2627ecd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"leet-check": "node common/scripts/check.js",
1111
"commit": "cz",
1212
"test": "vitest --run",
13+
"coverage": "vitest run --coverage",
1314
"lint": "eslint --fix --ext .js,jsx,cjs,mjs ./common"
1415
},
1516
"author": "EternalHeart",
@@ -22,6 +23,7 @@
2223
},
2324
"devDependencies": {
2425
"@types/node": "^20.11.5",
26+
"@vitest/coverage-v8": "^1.2.2",
2527
"eslint": "^8.56.0",
2628
"eslint-config-airbnb-base": "^15.0.0",
2729
"eslint-plugin-import": "^2.29.1",

0 commit comments

Comments
 (0)