vitest
Installation
SKILL.md
Vitest
Test behavior, not implementation. Mock boundaries, not internals.
Vitest is a Vite-native test framework with Jest-compatible APIs. It shares your app's Vite config (aliases, plugins, transforms) so tests run against the same code you ship.
References
| Topic | Reference | Contents |
|---|---|---|
| Mocking | [${CLAUDE_SKILL_DIR}/references/mocking.md] |
Full mocking rules, module mocking patterns, cleanup strategy |
| Assertions | [${CLAUDE_SKILL_DIR}/references/assertions.md] |
Matcher tables, asymmetric matchers, soft assertions |
| Lifecycle | [${CLAUDE_SKILL_DIR}/references/lifecycle.md] |
Hook execution order, test context, setup files, global setup |
| Configuration | [${CLAUDE_SKILL_DIR}/references/configuration.md] |
Config file options, projects, pools, sharding, env vars |
| Coverage | [${CLAUDE_SKILL_DIR}/references/coverage.md] |
Coverage providers, thresholds, ignore comments, performance |
| Jest migration | [${CLAUDE_SKILL_DIR}/references/jest-migration.md] |
Jest API translation, key behavioral differences, Mocha/Sinon |