What problem does it solve?
Writing comprehensive, framework-diverse tests for Storybook and Astro components is time-consuming and error-prone; this skill automates creation of consistent, maintainable Vitest test suites so developers can validate rendering, interactions, and accessibility without hand-crafting each case.
Core Features & Use Cases
- Generate Vitest test files from Storybook stories using composeStories and renderStory patterns to cover default and variant scenarios.
- Cross-framework support for Astro components and delegated framework components (React, Vue, Svelte, Preact, Solid.js, Alpine.js), including interaction, props/slots, and integration tests.
- Coverage and quality focus with accessibility-first queries, edge-case testing (empty/null props, long content), and guidance to reach 80%+ coverage.
- Use case: When adding a new Button component, produce Default, Variant, Accessibility, and Interaction tests that assert rendering, ARIA roles, and click behavior.
Quick Start
Use the test-generator skill to produce Vitest-compatible test files for a component and its stories that use composeStories and renderStory patterns and include rendering, interaction, and accessibility assertions.