chore: add vitest for testing

- Add vitest as dev dependency
- Add test script to package.json

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-01-18 21:37:29 +01:00
co-authored by Claude Opus 4.5
parent 1bcb6be9ba
commit 5b1941330b
2 changed files with 1207 additions and 3 deletions
+1199 -1
View File
File diff suppressed because it is too large Load Diff
+8 -2
View File
@@ -12,7 +12,10 @@
"start": "node dist/index.js",
"dev": "tsx src/index.ts",
"web": "node dist/index.js web",
"clean": "rm -rf dist"
"clean": "rm -rf dist",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage"
},
"keywords": [
"claude",
@@ -27,13 +30,16 @@
"chalk": "^5.3.0",
"commander": "^12.1.0",
"fastify": "^5.1.0",
"node-pty": "^1.1.0",
"uuid": "^10.0.0"
},
"devDependencies": {
"@types/node": "^20.14.0",
"@types/uuid": "^10.0.0",
"@vitest/coverage-v8": "^4.0.17",
"tsx": "^4.15.0",
"typescript": "^5.5.0"
"typescript": "^5.5.0",
"vitest": "^4.0.17"
},
"engines": {
"node": ">=18.0.0"