Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 45% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -23% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 44% | 0% |
| case-12 | ✗→✓ | ▲ Improved | -9% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 7% | 0% |
Vitest is a next-generation testing framework powered by Vite. It provides a Jest-compatible API with native ESM, TypeScript, and JSX support out of the box. Vitest shares the same config, transformers, resolvers, and plugins with your Vite app.
Key Features:
> The skill is based on Vitest 5.x (beta), generated at 2026-06-22.
| Topic | Description | Reference | |-------|-------------|-----------| | Configuration | Vitest and Vite config integration, defineConfig usage | core-config | | CLI | Command line interface, commands and options | core-cli | | Test API | test/it function, modifiers like skip, only, concurrent | core-test-api | | Describe API | describe/suite for grouping tests and nested suites | core-describe | | Expect API | Assertions with toBe, toEqual, matchers and asymmetric matchers | core-expect | | Hooks | beforeEach, afterEach, beforeAll, afterAll, aroundEach | core-hooks |
| Topic | Description | Reference | |-------|-------------|-----------| | Mocking | Mock functions, modules, timers, dates with vi utilities | features-mocking | | Snapshots | Snapshot testing with toMatchSnapshot and inline snapshots | features-snapshots | | Coverage | Code coverage with V8 or Istanbul providers | features-coverage | | Test Context | Test fixtures, context.expect, test.extend for custom fixtures | features-context | | Concurrency | Concurrent tests, parallel execution, sharding | features-concurrency | | Filtering | Filter tests by name, file patterns, tags | features-filtering | | Test Tags | Label tests with tags to filter runs and apply shared options | features-test-tags | | Reporters | Built-in reporters, default selection, CI/output config | features-reporters | | Benchmarking | Write benchmarks with the bench fixture (Tinybench) | features-benchmarking |
| Topic | Description | Reference | |-------|-------------|-----------| | Vi Utilities | vi helper: mock, spyOn, fake timers, hoisted, waitFor | advanced-vi | | Environments | Test environments: node, jsdom, happy-dom, custom | advanced-environments | | Type Testing | Type-level testing with expectTypeOf and assertType | advanced-type-testing | | Projects | Multi-project workspaces, different configs per project | advanced-projects |
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 11,689 | 8,827 | -24% | 1 | 1 | 0% | 2,345 | 2,536 | +8% | 0 | 0 | — |
case-02 | pass→pass | 13,401 | 12,633 | -6% | 1 | 1 | 0% | 3,081 | 3,702 | +20% | 0 | 0 | — |
case-03 | fail→pass | 10,627 | 9,933 | -7% | 1 | 1 | 0% | 2,181 | 3,159 | +45% | 0 | 0 | — |
case-04 | fail→fail | 8,268 | 6,828 | -17% | 1 | 1 | 0% | 1,736 | 2,444 | +41% | 0 | 0 | — |
case-05 | fail→fail | 7,022 | 6,393 | -9% | 1 | 1 | 0% | 1,375 | 2,130 | +55% | 0 | 0 | — |
case-06 | pass→pass | 7,852 | 5,059 | -36% | 1 | 1 | 0% | 1,485 | 1,655 | +11% | 0 | 0 | — |
case-07 | pass→pass | 7,171 | 5,597 | -22% | 1 | 1 | 0% | 1,422 | 1,875 | +32% | 0 | 0 | — |
case-08 | pass→pass | 4,507 | 3,170 | -30% | 1 | 1 | 0% | 900 | 1,444 | +60% | 0 | 0 | — |
case-09 | pass→pass | 10,363 | 6,329 | -39% | 1 | 1 | 0% | 2,025 | 2,007 | -1% | 0 | 0 | — |
case-10 | fail→pass | 16,702 | 9,043 | -46% | 1 | 1 | 0% | 3,335 | 2,580 | -23% | 0 | 0 | — |
case-11 | fail→pass | 7,892 | 6,132 | -22% | 1 | 1 | 0% | 1,442 | 2,076 | +44% | 0 | 0 | — |
case-12 | fail→pass | 14,868 | 7,549 | -49% | 1 | 1 | 0% | 2,612 | 2,371 | -9% | 0 | 0 | — |
case-13 | fail→pass | 10,423 | 9,744 | -7% | 1 | 1 | 0% | 1,884 | 2,010 | +7% | 0 | 0 | — |
case-14 | pass→pass | 12,504 | 5,935 | -53% | 1 | 1 | 0% | 2,302 | 1,880 | -18% | 0 | 0 | — |
case-15 | fail→pass | 12,062 | 6,011 | -50% | 1 | 1 | 0% | 2,292 | 2,061 | -10% | 0 | 0 | — |
case-16 | pass→pass | 10,786 | 4,602 | -57% | 1 | 1 | 0% | 2,319 | 1,752 | -24% | 0 | 0 | — |
case-17 | pass→pass | 12,311 | 6,686 | -46% | 1 | 1 | 0% | 2,282 | 2,115 | -7% | 0 | 0 | — |
case-18 | pass→pass | 13,307 | 5,574 | -58% | 1 | 1 | 0% | 2,647 | 1,835 | -31% | 0 | 0 | — |
case-19 | fail→pass | 9,408 | 5,085 | -46% | 1 | 1 | 0% | 1,920 | 1,770 | -8% | 0 | 0 | — |
case-20 | pass→pass | 16,631 | 9,612 | -42% | 1 | 1 | 0% | 3,511 | 2,829 | -19% | 0 | 0 | — |
case-21 | pass→pass | 9,847 | 9,467 | -4% | 1 | 1 | 0% | 2,000 | 2,735 | +37% | 0 | 0 | — |
case-22 | pass→fail | 17,987 | 14,670 | -18% | 1 | 1 | 0% | 3,163 | 3,540 | +12% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +27 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 7/26/2026 | -100% |
Other measured skills in the registry, with their headline benchmark lift.