Bun

Guides

Test runner

A collection of guides for writing, running, and configuring tests in Bun

Test runner

Mock functions in bun test

View guide

Test runner

Spy on methods in bun test

View guide

Test runner

Update snapshots in bun test

View guide

Test runner

Run tests in watch mode with Bun

View guide

Test runner

Use snapshot testing in bun test

View guide

Test runner

Bail early with the Bun test runner

View guide

Test runner

Skip tests with the Bun test runner

View guide

Test runner

Migrate from Jest to Bun's test runner

View guide

Test runner

Run your tests with the Bun test runner

View guide

Test runner

Set the system time in Bun's test runner

View guide

Test runner

Write browser DOM tests with Bun and happy-dom

View guide

Test runner

Set a per-test timeout with the Bun test runner

View guide

Test runner

Mark a test as a "todo" with the Bun test runner

View guide

Test runner

Re-run tests multiple times with the Bun test runner

View guide

Test runner

Set a code coverage threshold with the Bun test runner

View guide

Test runner

Generate code coverage reports with the Bun test runner

View guide