Define testing strategy for a project — choose frameworks, set coverage targets, create test directory structure, and document conventions. Triggers: test strategy, testing plan, test setup, how to test, test framework
Define a comprehensive testing strategy for the project.
Jest/Vitest | Supertest | Playwright/Cypress | Istanbul/c8
tests/
unit/ ← mirrors src/ structure
integration/ ← API + DB tests
e2e/ ← browser flow tests
fixtures/ ← shared test data
helpers/ ← test utilities
<module>.test.ts or <module>.spec.ts.describe blocks per module, it blocks per behavior.{
"scripts": {
"test": "vitest run",
"test:watch": "vitest",
"test:unit": "vitest run tests/unit",
"test:integration": "vitest run tests/integration",
"test:e2e": "playwright test",
"test:coverage": "vitest run --coverage"
}
}