Claude Code unit-test-author for colocated Angular unit tests
Organize TypeScript tests using the project conventions for parameterized cases, shared doubles, and the appropriate scope for TestBed.
中文Install in Claude Code
Open Pronoscup 2026 in Claude Code with the Angular, TypeScript, and Vitest setup used by the project.
- Review `.claude/skills/unit-test-author/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/unit-test-author/` in your project and save the reviewed file as `.claude/skills/unit-test-author/SKILL.md`.
- Start Claude Code from that project's root, then select `/unit-test-author` in the slash menu.
Example task
The pure domain fixture rankings-16 calculates points from wins. A win gives 3 points. Use {noWins: 0, oneWin: 3, twoWins: 6}.What to check
Use test.each in the colocated spec to check {noWins: 0, oneWin: 3, twoWins: 6}. Test the pure calculation directly and report all cases.
Original SKILL.md on GitHub · Updated
Frequently asked question
Does a pure TypeScript domain function need TestBed?
No. Test pure domain classes or functions directly. Configure TestBed under project conventions when testing Angular-specific components and behavior.