chore: set up Vitest testing framework

Add Vitest and @vitest/coverage-v8 for unit testing. Configure
test scripts and add coverage directory to gitignore.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jiayuan 2026-01-30 13:54:34 +08:00
parent 6f8c9ef383
commit 7215a15e37
4 changed files with 455 additions and 24 deletions

View file

@ -16,7 +16,10 @@
"build": "turbo build",
"build:sdk": "pnpm --filter @multica/sdk build",
"start": "node dist/index.js",
"typecheck": "turbo typecheck"
"typecheck": "turbo typecheck",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage"
},
"keywords": [],
"author": "",
@ -26,9 +29,11 @@
"@types/node": "catalog:",
"@types/turndown": "^5.0.6",
"@types/uuid": "^11.0.0",
"@vitest/coverage-v8": "^4.0.18",
"tsx": "^4.21.0",
"turbo": "^2.3.4",
"typescript": "catalog:"
"typescript": "catalog:",
"vitest": "^4.0.18"
},
"dependencies": {
"@mariozechner/pi-agent-core": "^0.50.3",