Write and maintain tests with Rstest dual projects, mock utilities, and Zustand store testing patterns.
62
74%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
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 Rstest dual projects.
| 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:watch # Watch mode
bun run test:coverage # Coverage report.test.ts = unit (Node.js), .test.tsx = 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.
60125ec
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.