{"slug": "show-hn-generate-angular-testbed-specs-and-storybook-stories-locally-no-llm", "title": "Show HN: Generate Angular TestBed specs and Storybook stories locally, no LLM", "summary": "A new VS Code extension called ngTestFoundry generates deterministic first drafts of Angular TestBed .spec.ts files and CSF3 Storybook .stories.ts files from component source without using an LLM. The tool infers component imports, shallow providers, required inputs, and basic creation assertions, and it targets standalone components using input(), model(), output(), inject(), @Input(), and @Output(), with strongest support for Angular 17.3+ standalone components. The extension's stated limits are that non-standalone NgModule graph resolution and Vitest output are planned, and dependency mocks are shallow; its author asks for feedback on whether the generated TestBed shape works in an actual Angular workspace.", "body_md": "### TestBed specs\n\nGenerate `.spec.ts` scaffolds with component imports, shallow providers, required inputs, and basic creation assertions.\n\nngTestFoundry is a VS Code extension that creates deterministic first drafts of Angular TestBed specs and CSF3 Storybook stories from component source.\n\nThe goal is not magic. The goal is a useful, repeatable starting point that developers can review and adapt like normal code.\n\nGenerate CSF3 `.stories.ts` files with inferred args from component inputs and outputs.\n\nBest fit for standalone components using `input()`, `model()`, `output()`, `inject()`, `@Input()`, and `@Output()`.\n\nUse the core generator on the active Angular component.\n\nUse ngTestFoundry across larger workspaces and team styles.\n\nngTestFoundry prefers explicit TODOs over silent guessing. Today it is strongest on Angular 17.3+ standalone components.\n\n```\nCurrent limits:\n- Non-standalone NgModule graph resolution is planned.\n- Dependency mocks are shallow.\n- Vitest output is planned.\n```\n\nThe most useful feedback is whether the generated TestBed shape works in an actual Angular workspace.\n\nBefore 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.\n\nA short explanation of why ngTestFoundry exists, what it supports today, what it generates, and what feedback would help most.", "url": "https://wpnews.pro/news/show-hn-generate-angular-testbed-specs-and-storybook-stories-locally-no-llm", "canonical_source": "https://sshyeri.github.io/ng-test-foundry-public/", "published_at": "2026-11-19 00:35:27+00:00", "updated_at": "2026-11-19 00:44:28.276557+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["ngTestFoundry", "Angular", "Storybook", "Visual Studio Code", "Vitest"], "also_reported_by": [], "takeaway": "ngTestFoundry generates deterministic Angular TestBed .spec.ts and CSF3 .stories.ts scaffolds from component source without an LLM, leaving explicit TODOs instead of guessing, but its dependency mocks are shallow and NgModule graph resolution and Vitest output are not yet supported.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-generate-angular-testbed-specs-and-storybook-stories-locally-no-llm", "markdown": "https://wpnews.pro/news/show-hn-generate-angular-testbed-specs-and-storybook-stories-locally-no-llm.md", "text": "https://wpnews.pro/news/show-hn-generate-angular-testbed-specs-and-storybook-stories-locally-no-llm.txt", "jsonld": "https://wpnews.pro/news/show-hn-generate-angular-testbed-specs-and-storybook-stories-locally-no-llm.jsonld"}}