Show HN: Generate Angular TestBed specs and Storybook stories locally, no LLM ss...
Show HN @show
Show HN: Generate Angular TestBed specs and Storybook stories locally, no LLM sshyeri.github.io · 3 points · 0 comments · HN thread
TL;DR ngTestFoundry is a VS Code extension that generates deterministic first-draft Angular TestBed .spec.ts files and CSF3 Storybook .stories.ts files from component source, without using an LLM. It is aimed at standalone components and marks unresolved cases with explicit TODOs rather than guessing. The author asks whether the generated TestBed shape works in a real Angular workspace.
- Generates .spec.ts scaffolds with component imports, shallow providers, required inputs, and basic creation assertions.
- Generates CSF3 .stories.ts files with args inferred from component inputs and outputs.
- Targets standalone components using input(), model(), output(), inject(), @Input() and @Output(); strongest on Angular 17.3+.
- Prefers explicit TODOs over silent guessing when static analysis cannot resolve something.
- Current limits: non-standalone NgModule graph resolution is planned but not done, dependency mocks are shallow, and Vitest output is planned.
- Output is meant as a repeatable starting point to review and adapt, not a complete test suite.
Discussion No comments have been posted yet, so there is no discussion thread to summarize. The submission has 3 points and has not yet drawn any community response.
#Angular #TestBed #Storybook #VSCode #codeGeneration #showHN