Testing Patterns Skill Vitest Testing Strategy When to Use : Writing tests for new features, agents, API routes --- Framework: Vitest Command : Required : 100% pass rate Location : directory --- Unit Test Pattern --- Agent Test Pattern --- API Test Pattern --- Mocking Supabase --- Coverage Requirements - Unit Tests : All services, utilities, helpers - Integration Tests : API routes, agent workflows - E2E Tests : Critical user flows (Playwright) Target : 100% pass rate (no failures allowed) --- Standard : All code must have tests, all tests must pass ---