Set up Vitest for both server (Node + Supertest) and client (jsdom + React Testing Library). Extract Express app into app.js for testability. Add example tests covering bills validation, bills route CRUD, ThemeContext, and App nav rendering. Update CLAUDE.md with testing docs and requirement to write tests with features. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
441 B
JSON
23 lines
441 B
JSON
{
|
|
"name": "budget-server",
|
|
"version": "1.0.0",
|
|
"main": "src/index.js",
|
|
"scripts": {
|
|
"start": "node src/index.js",
|
|
"dev": "nodemon src/index.js",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^16.4.5",
|
|
"express": "^4.19.2",
|
|
"pg": "^8.11.5"
|
|
},
|
|
"devDependencies": {
|
|
"nodemon": "^3.1.0",
|
|
"supertest": "^7.2.2",
|
|
"vitest": "^4.1.0"
|
|
}
|
|
}
|