Run project tests using npm test (Vitest) and validate the build with next build.
Provide standardized instructions for running tests and validating the build. Ensures agents use npm test for unit/integration tests and npm run build for build validation.
npm test for running the test suitenpm run build (which runs next build) to validate the production buildsrc/ directory (where package.json lives)cd src
npm test
cd src
npm run test:watch
cd src
npx vitest run path/to/test.test.ts
cd src
npx vitest run --reporter=verbose -t "pattern"
cd src
npm run build
cd src
npm run lint
npm run type-check
Run cd src && npm ci to ensure all dependencies are installed.
Run cd src && npm run type-check to see TypeScript errors independently of the build.
Run cd src && npx prisma db push to ensure the database schema is up to date, then retry.