Bun Test runner - Run Jest-compatible tests with Bun
Runs JavaScript and TypeScript tests with Bun's built-in Jest-compatible runner, including hooks, mocking, snapshots, watch mode, and reporting.
Tags
Updated: 2026-10-04Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Run JavaScript and TypeScript tests
- Support lifecycle hooks
- Run snapshot tests
- Run UI and DOM tests
- Watch test files
- Preload scripts
- Mock dependencies
- Filter test files
- Filter test names
- Run tests concurrently
- Retry failed tests
- Rerun tests repeatedly
- Randomize test order
- Generate JUnit XML reports
- Emit GitHub Actions annotations
Inputs
- JavaScript test files
- TypeScript test files
- JSX test files
- Test file filters
- Test name patterns
- Preload scripts
- bunfig.toml configuration
- Test runner options
Outputs
- Test result output
- Process exit status
- JUnit XML report
- GitHub Actions annotations
Requirements
- Bun runtime
- Bun-installed environment
