Install any skill in seconds. Free to start, no credit card required.
Get Started Free →asymmetric-al/vitest
Write, review, filter, mock, and debug Core unit tests with the repository's installed Vitest 4 configuration.
Passed 16 of 24 test cases with the skill, and 9 of 24 without it.
and 8 more in the full report
9 fixed8 passed either way7 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
This benchmark measured an earlier version of the skill.
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
I am debugging a specific test named 'handles expired token cleanly' in `tests/unit/auth/token.test.ts`. What is the precise command to run just this test name in our repository without using `npx`?
| Checked | Without skill | With skill |
|---|---|---|
| Uses the `-t` CLI option to filter tests by name. | Passed | Passed |
| Recommends executing `bunx vitest run` for focused CLI runs. | Missed | Passed |
The instructions your model reads when the skill loads.
Use the repository harness as the source of truth. Core currently resolves
Vitest 5.0.3 from bun.lock; verify the exact version before relying on a newly
introduced API.
Read these before changing tests or configuration:
vitest.config.ts — include globs, aliases, Node default environment,
timeouts, mock clearing, setup, and the custom coverage provider.tests/setup/unit-env.ts — safe env defaults and browser shims.scripts/verify/unit-tests.mjs — the full unit gate and platform behavior.docs/ai/rules/testing.md — repository-wide test and CI policy..next-docs/01-app/02-guides/testing/vitest.mdx when testing Next.js code.Do not use bun test; that selects Bun's test runner. Use Vitest through the
committed scripts or bunx vitest.
# Full CI-equivalent unit suite with Core's coverage provider
bun run test:unit
# Focused file or directory while iterating
bunx vitest run tests/unit/path/to/example.test.ts
# Focused test name
bunx vitest run tests/unit/path/to/example.test.ts -t "expected behavior"
# Watch a focused surface
bunx vitest tests/unit/path/to/example.test.ts
# Structured failure report and targeted reruns
bun run test:unit:feedback
test cases passed, vs 9 / 24 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.