This repository runs entirely with Bun — no Node/Jest dependencies and no npm install required.
- Write test files in the
testsdirectory (e.g.,*.spec.ts). - Write your kata solutions in the
appdirectory.
You can find TDD learning resources on our Learn Tech site.
- Install Bun: https://bun.com/docs/installation
- Via script (see the Bun website for latest):
curl -fsSL https://bun.sh/install | bash - npm (the last
npmcommand you'll ever need!) -npm install -g bun - macOS (Homebrew):
brew install oven-sh/bun/bun - Windows:
powershell -c "irm bun.sh/install.ps1 | iex"
- Via script (see the Bun website for latest):
- Run all tests
bun test- Watch mode
bun test --watch- Run a single test file (pattern)
bun test subtract- Coverage
bun test --coverage- Bun uses tsconfig.json via bunfig.toml, including the
@/*alias →app/*. - No npm dependencies are required for testing;
package.jsonhas no devDependencies. - Bun's test runner is similar to Jest but has some differences; see https://bun.sh/docs/api/test for details.