Bun Test Basics Bun ships with a fast, built-in, Jest-compatible test runner. Tests run with the Bun runtime and support TypeScript/JSX natively. Quick Start Writing Tests Test File Patterns Bun discovers test files matching: - - - - Test Modifiers Parameterized Tests Concurrent Tests Common Matchers CLI Options Output Reporters Common Errors | Error | Cause | Fix | |-------|-------|-----| | | Test exceeds 5s | Use or optimize | | | Wrong file pattern | Check file naming | | | Missing import | Import from | | | Test failure | Check expected vs actual | When to Load References Load when: - Nee…