Unit Testing Vitest

Unit testing guidelines for Vitest (and Jest-compatible) JavaScript/TypeScript projects. Use this skill whenever writing, reviewing, or refactoring unit tests, adding vi mocks, configuring coverage, or debugging flaky/async test failures. Triggers on tasks involving *.test.ts, *.spec.ts files, vi.fn/vi.mock/vi.spyOn usage, Vitest config, or any request to "write tests", "add unit tests", "mock this", or "improve test coverage".

tuanductran Updated 83 repo stars

File contents

tuanductran/tester-skills commit d2579b0897

Frequently asked questions

npx get-skill add tuanductran/unit-testing-vitest