| name | testing |
| description | Testing commands and patterns for Oak AI project including running Jest unit tests, E2E tests with Playwright, coverage reports, and filtering tests. Use when writing tests, running test suites, or debugging test failures. |
Testing
Running Tests
All Tests
pnpm test
Specific Test Pattern
pnpm test -- -t "test name pattern"
E2E Tests
pnpm test-e2e
Coverage Report
pnpm test-coverage
Package-Specific Tests
Run tests for specific packages:
pnpm --filter @oakai/aila test
pnpm --filter @oakai/nextjs test
pnpm --filter @oakai/api test
Test Framework
- Unit Tests: Jest
- Component Tests: React Testing Library
- E2E Tests: Playwright