1. Run all tests
bun test discovers and runs every *.test.ts file with the built-in, zero-config runner.
bun testTyporithm · easy
Step 1 of 8 · intro card
bun CLI
bun test is a built-in, Jest-like runner with no config: run the whole suite, add --watch for live re-runs, or pass a file path to run just one test file.
Bun ships its own test runner, so bun test works out of the box with no Jest or Vitest install and no config file.
The API is Jest-compatible — describe, test, and expect all work — and TypeScript test files run directly.
bun test --watch re-runs on save, and bun test ./foo.test.ts narrows the run to a single file.
bun test runs the whole suite, zero config.
--watch re-runs tests as files change.
Pass a path to run one test file.
bun test
bun test --watch
bun test ./foo.test.tsConnect each part of the code to the concept before you type.
bun test discovers and runs every *.test.ts file with the built-in, zero-config runner.
bun test--watch re-runs affected tests automatically whenever a file changes.
bun test --watchPassing a path runs only that test file instead of the whole suite.
bun test ./foo.test.tsRead the concept map and follow the code breakdown.
Type the implementation, repair mistakes and work through every recall exercise.
Use the final check without hints; revisit weak concepts in short practice sessions.