What problem does it solve?
This Skill streamlines the testing process for applications using Vitest, offering comprehensive guides for configuration, migration, and optimization, reducing the complexity of setting up and running tests.
Core Features & Use Cases
- V4 Migration Guide: Simplifies the migration from Vitest v3 to v4, addressing breaking changes and compatibility issues.
- Advanced Configuration: Provides detailed configuration options for environments, coverage, reporters, and performance tuning.
- Browser Mode Support: Facilitates browser-based testing and visual regression with Playwright.
- Fixture Management: Offers advanced fixture management with
test.extend() and test context manipulation.
- Lifecycle Hooks: Guides the use of lifecycle hooks like
aroundEach, aroundAll, beforeEach, and afterEach.
Quick Start
Run the skill by executing the command: use testing-with-vitest. This will activate the Vitest testing environment with the specified configurations and ready you for automated testing and optimization.