Add test:coverage and test:verbose scripts with vitest coverage provider

This commit is contained in:
morluto
2026-07-12 10:20:07 +08:00
parent d341f26459
commit 4c9224990e
2 changed files with 249 additions and 4 deletions
+3
View File
@@ -49,6 +49,8 @@
"start": "node dist/main.js",
"pretest": "npm run build",
"test": "vitest run",
"test:coverage": "vitest run --coverage.enabled --coverage.provider=v8",
"test:verbose": "vitest run --reporter=verbose",
"test:watch": "vitest",
"typecheck": "tsc --noEmit",
"verify:hopper": "npm run build && node scripts/verify-real-hopper.mjs",
@@ -66,6 +68,7 @@
"devDependencies": {
"@modelcontextprotocol/client": "2.0.0-beta.3",
"@types/node": "24.10.1",
"@vitest/coverage-v8": "^4.1.10",
"husky": "9.1.7",
"jscpd": "5.0.12",
"knip": "6.26.0",