chore(01.1-01): install and configure Vitest test framework
- Add vitest as dev dependency - Create vitest.config.ts with globals, TypeScript support, coverage - Add npm scripts: test, test:watch, test:coverage
This commit is contained in:
13
package.json
13
package.json
@@ -10,7 +10,10 @@
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"dev": "tsx watch src/bin/cw.ts",
|
||||
"clean": "rimraf dist"
|
||||
"clean": "rimraf dist",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage"
|
||||
},
|
||||
"keywords": [
|
||||
"claude",
|
||||
@@ -21,13 +24,17 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@trpc/server": "^11.9.0",
|
||||
"commander": "^12.1.0",
|
||||
"execa": "^9.5.2"
|
||||
"execa": "^9.5.2",
|
||||
"zod": "^4.3.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@trpc/client": "^11.9.0",
|
||||
"@types/node": "^22.10.7",
|
||||
"rimraf": "^6.0.1",
|
||||
"tsx": "^4.19.2",
|
||||
"typescript": "^5.7.3"
|
||||
"typescript": "^5.7.3",
|
||||
"vitest": "^4.0.18"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user