TestBed specs
Generate `.spec.ts` scaffolds with component imports, shallow providers, required inputs, and basic creation assertions.
ngTestFoundry is a VS Code extension that creates deterministic first drafts of Angular TestBed specs and CSF3 Storybook stories from component source.
The goal is not magic. The goal is a useful, repeatable starting point that developers can review and adapt like normal code.
Generate `.spec.ts` scaffolds with component imports, shallow providers, required inputs, and basic creation assertions.
Generate CSF3 `.stories.ts` files with inferred args from component inputs and outputs.
Best fit for standalone components using `input()`, `model()`, `output()`, `inject()`, `@Input()`, and `@Output()`.
Use the core generator on the active Angular component.
Use ngTestFoundry across larger workspaces and team styles.
ngTestFoundry prefers explicit TODOs over silent guessing. Today it is strongest on Angular 17.3+ standalone components.
Current limits:
- Non-standalone NgModule graph resolution is planned.
- Dependency mocks are shallow.
- Vitest output is planned.
The most useful feedback is whether the generated TestBed shape works in an actual Angular workspace.
Before installing, you can inspect a real example of the generated TestBed spec and Storybook story, including the TODOs ngTestFoundry leaves when static analysis should not guess.
Open example outputA short explanation of why ngTestFoundry exists, what it supports today, what it generates, and what feedback would help most.