sshyeri
An extension that locally generates test and Storybook drafts from Angular components
What does it do?
Opening an Angular component in VS Code and running the generator creates a .spec.ts draft with component imports, shallow providers, required inputs, and a basic creation check. It also infers arguments from the same source’s inputs and outputs to generate a CSF3 .stories.ts file. Anything difficult to determine through static analysis is left as a TODO for developer review. The free tier can create a test or story draft for one active component; Pro adds batch generation across the workspace and custom Eta templates.
Key features
- Generate a TestBed .spec.ts draft from the active Angular component
- Infer arguments from component inputs and outputs to generate a CSF3 .stories.ts draft
- Use local static analysis and mark uncertain parts as TODO
- Generate a test or story for one component on the free tier
- Batch-generate tests and stories across the workspace with Pro
- Change the output with custom Eta templates