Write and maintain tests with Bun units and Rstest integrations, mock utilities, and Zustand store testing patterns.
71%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./frontend/.claude/skills/testing/SKILL.mdWrite reliable tests with Bun units and Rstest integrations.
| Action | Rule |
|---|---|
| Choose test type | test-unit-vs-integration.md |
| Mock modules | test-mock-patterns.md |
| Test stores | test-zustand-stores.md |
| Mock Connect APIs | mock-transport.md |
| Skip UI rendering tests | no-ui-rendering-tests.md |
bun run test # All tests (CI default)
bun run test:ci # Sequential for CI
bun run test:unit # Unit tests only
bun run test:integration # Integration tests only
bun run test:unit:watch # Bun watch mode
bun run test:watch # Integration watch mode
bun run test:coverage # Coverage report.test.ts = Bun unit, .test.tsx / .integration.test.ts = Rstest integration (Happy DOM)test-utils/test-utils.tsx for React component testsWhen implementing interactive features (buttons, forms, etc.):
.test.ts or .test.tsx filesNOT for: Multi-page user workflows → use e2e-tester
See rules/ directory for detailed guidance.
redpanda-data/console
04571d4
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.