--- type: doc name: testing-strategy description: Test frameworks, patterns, coverage requirements, and quality gates category: testing generated: 2026-04-29 status: active scaffoldVersion: "2.0.0" --- # Testing Strategy ## Test Types - **Unit**: Jasmine and Karma, files named `*.spec.ts`. - **E2E**: Protractor (`e2e/` folder), files named `*.e2e-spec.ts`. ## Running Tests - All tests: `npm run test` or `ng test` - E2E tests: `npm run e2e` or `ng e2e` - Watch mode: `npm run test -- --watch` ## Quality Gates - Components should have accompanying `.spec.ts` files ensuring fundamental rendering and interactions. - NgRx reducers and effects must be covered by unit tests. - TypeScript strict typing helps catch compile-time issues before tests even run.