Use this skill to generate comprehensive Vitest tests for all code examples in a concept documentation page, verifying accuracy through automated tests. It provides a structured four-phase methodology to extract code examples, determine test file structures, convert examples to assertions, and handle special cases like async code and errors. Reach for it when adding new documentation pages, updating examples, or ensuring all code snippets behave as described.
Key Features
Code example extraction and categorization
Structured test file organization
Conversion of console examples into expect assertions
Handling of async, error, and DOM test patterns
Privacy & Security
Data Collection
This tool follows industry-standard security practices and only collects data necessary for functionality.