Bun Development Skill for TypeScript Unit Tests
Use Claude Code to add focused Bun tests with representative normal inputs and edge cases.
中文Install in Claude Code
Use the Bun version installed for the project and start with an existing pure function. Keep any separate project type check.
- Get the complete `cli-tool/components/skills/development/bun-development` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/bun-development/SKILL.md`, start Claude Code at the project root, and call `/bun-development`.
Example task
Add tests/amount.test.ts for centsToAmount(250) returning 2.5, zero returning zero, and a negative value throwing. Run bun test ./tests/amount.test.ts.What to check
The output identifies all three cases, with each failure tied to a specific input and expected behavior.
Original SKILL.md on GitHub · Updated
Frequently asked question
Do I still need tsc --noEmit after bun test?
Run the separate type checker if the project expects static checking. Executing tests and checking types address different defects.