Runtime
Bundler
Package Manager
Test Runner
Guides
Reference
Blog
Install Bun
Guides Test Runner

Skip tests with the Bun test runner

To skip a test with the Bun test runner, use the test.skip function.

test.ts
import { test } from "bun:test";

test.skip("unimplemented feature", () => {
  expect(Bun.isAwesome()).toBe(true);
});

Running bun test will not execute this test. It will be marked as skipped in the terminal output.

terminal
$ bun test
bun test v1.3.5 (9c68abdb)

test.test.ts:
โœ“ add [0.03ms]
โœ“ multiply [0.02ms]
ยป unimplemented feature

 2 pass
 1 skip
 0 fail
 2 expect() calls
Ran 3 tests across 1 files. [74.00ms]

See also:

On this page

No Headings