Write focused Vitest unit tests. Use when adding or improving unit tests for business logic, data access, common services, or other server modules.
85%
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
Write focused unit tests that follow the project's testing conventions.
write-api-e2e-tests.packages_worker (excluded from pnpm test:server for now; own vitest/packages-db).Read before writing. Follow these ADRs; do not invent a parallel testing style.
describe grouping, assertions, mocking, and shared setup.<file>.test.ts.@crowd/test-kit (withQx for Postgres-backed tests; factories and opt-in defaults per ADR-0007).Start the test database when needed:
./scripts/cli scaffold up-testRun a focused test file:
pnpm test:server -- path/to/file.test.tsOptional:
pnpm test:changed
pnpm test:watch -- path/to/file.test.tslinuxfoundation/crowd.dev
f27ddfb
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.