What problem does it solve?
This Skill provides a fast and easy way to write and run unit tests for JavaScript applications using Vitest, a testing framework powered by Vite.
Core Features & Use Cases
- Fast Test Execution: Utilizes Vite's transformation pipeline for quick test updates.
- Jest Compatibility: Offers a Jest-compatible API for seamless integration with existing test suites.
- ESM, TypeScript, JSX Support: Native support for modern JavaScript features.
- Advanced Features: Supports mocking, coverage, snapshot testing, and more.
- Use Case: Ideal for developers looking to add unit tests to their JavaScript projects, leveraging the power of Vitest and Vite.
Quick Start
Install the skill using the following command: npm install -g @antfu/skills vitest. Once installed, create a new test file in your project directory and use the vitest command to run your tests.