See TESTING-README.md in root for full command reference.
npm test # Jest unit tests
npm run test:e2e # Playwright E2E tests
npm run test:coverage # Coverage reportWe use two complementary testing frameworks:
- ✅ Fast tests (milliseconds)
- ✅ Isolated component testing
- ✅ Code coverage tracking
- ✅ Mock external dependencies
- ✅ Real browser testing
- ✅ Full user flows
- ✅ Cross-browser support
- ✅ Visual regression
-
Jest vs Playwright (~10 min)
- When to use which framework
- Decision tree and best practices
-
Testing Guide (~8 min)
- How to write tests
- File naming conventions
- Testing patterns
-
Testing Strategy (~7 min)
- Overall testing approach
- Coverage goals
- Manual Test Scenarios - Manual testing checklist
- Test Cleanup Summary - What was fixed
- E2E Test Analysis - Playwright status
✅ 54 passing tests
⏭️ 11 skipped tests (documented)
❌ 0 failures
📈 42% statement coverage
📈 57% branch coverage
✅ 2 passing (theme toggle)
⏭️ 2 skipped
⚠️ Some tests need implementation
| Scenario | Use Jest | Use Playwright |
|---|---|---|
| Component renders | ✅ | ❌ |
| Props handling | ✅ | ❌ |
| State updates | ✅ | ❌ |
| Full user flow | ❌ | ✅ |
| Cross-browser | ❌ | ✅ |
| Navigation | ❌ | ✅ |
Rule: 80% Jest (fast), 20% Playwright (critical flows)
npm test -- --verbosenpx playwright test --ui # UI mode (recommended)
npx playwright test --debug # Debug modeSee jest-vs-playwright.md for detailed comparison.