Modern TypeScript/JavaScript testing with Vitest. Fast unit and integration tests, native ESM support, Vite-powered HMR, and comprehensive mocking. Use for testing TS/JS projects.
78
76%
Does it follow best practices?
Impact
74%
1.05xAverage score across 3 eval scenarios
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./plugins/vitest-testing/skills/vitest-testing/SKILL.mdVitest setup and configuration for a TypeScript library
Bun install
0%
0%
defineConfig import
100%
100%
globals: true
100%
100%
Coverage provider v8
100%
100%
Coverage reporters
0%
50%
Coverage thresholds
50%
100%
Include pattern
0%
28%
Test environment set
0%
100%
Test file naming
100%
100%
Import from vitest
100%
100%
describe() blocks
100%
100%
--reporter=tree in COMMANDS
0%
0%
CI mode command
0%
33%
Vitest module mocking with vi.mock and vi.fn
vi imported from vitest
100%
100%
vi.mock() for db module
100%
100%
vi.mock() at top level
100%
100%
vi.fn() for mock functions
100%
100%
Mock configuration method used
100%
100%
clearAllMocks in beforeEach
100%
100%
Only external dependency mocked
100%
100%
Test utilities from vitest
100%
100%
describe() grouping
100%
100%
toMatchObject() assertion
0%
0%
Test file naming
100%
100%
Timer mocking and parametrized tests for scheduler utility
vi import
100%
100%
Utilities import
100%
100%
Fake timers setup
100%
100%
Restore mocks teardown
0%
0%
Advance timers
100%
100%
System time mock
100%
100%
describe.each parametrize
0%
0%
Concurrent async tests
0%
0%
vi.fn() mock
100%
0%
describe blocks
100%
100%
Correct test filename
100%
100%
vitest.config.ts present
100%
100%
a0994f7
Table of Contents
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.