Home
DevCentral
Search
Configure Global Search
Log In
Transactions
T2242
Change Details
Change Details
Old
New
Diff
No way to run all tests from the project root. Create a root package.json with npm test running both backend (Jest) and frontend (Vitest) via --prefix. Add test:backend and test:frontend shortcuts.
No way to run all tests from the project root. Create a root package.json with npm test running both backend (Jest) and frontend (Vitest) via --prefix. Add test:backend and test:frontend shortcuts. --- - Backend: **cd backend && npm test** (Jest) - Frontend: **cd frontend && npm run test:unit** (Vitest) We could add a root package.json with a unified script. It would look like: ``` { "name": "servpulse", "private": true, "scripts": { "test": "npm test --prefix backend && npm run test:unit --prefix frontend", "test:backend": "npm test --prefix backend", "test:frontend": "npm run test:unit --prefix frontend" } } ``` Then npm test from the project root runs everything.
No way to run all tests from the project root. Create a root package.json with npm test running both backend (Jest) and frontend (Vitest) via --prefix. Add test:backend and test:frontend shortcuts.
--- - Backend: **cd backend && npm test** (Jest) - Frontend: **cd frontend && npm run test:unit** (Vitest) We could add a root package.json with a unified script. It would look like: ``` { "name": "servpulse", "private": true, "scripts": { "test": "npm test --prefix backend && npm run test:unit --prefix frontend", "test:backend": "npm test --prefix backend", "test:frontend": "npm run test:unit --prefix frontend" } } ``` Then npm test from the project root runs everything.
Continue