vitest-v4
OfficialMaster Vitest v4 tests for TypeScript React apps.
Authorsablier-labs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a practical guide to writing and maintaining Vitest v4 tests for TypeScript-based React and Next.js projects, helping teams ensure code quality with reliable unit and component tests.
Core Features & Use Cases
- jsdom-enabled testing: run tests in a browser-like environment for React components.
- TypeScript friendly: seamless usage with TS types, interfaces, and aliases.
- Test organization patterns: colocate tests with source and leverage mocks, setup, and utilities.
- Use Case: when teams build a TS React/Next.js app, use this Skill to implement unit tests, component tests, and debugging strategies, then run pattern-based tests during CI.
Quick Start
- Install Vitest in your project and ensure a basic vitest.config.ts.
- Run all tests with nlx vitest run
- Run tests that match a pattern: nlx vitest run -t "pattern"
- Run a specific test file: nlx vitest run path/to/file.test.ts
- Enable watch mode: nlx vitest
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: vitest-v4 Download link: https://github.com/sablier-labs/plugin-marketplace/archive/main.zip#vitest-v4 Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.