Skip tests with the Bun test runner
To skip a test with the Bun test runner, use the test.skip function.
test.test.ts
import { test, expect } from "bun:test";
test.skip("unimplemented feature", () => {
expect(Bun.isAwesome()).toBe(true);
});Running bun test doesn't execute this test. The terminal output marks it as skipped.
terminal
bun testtest.test.ts:
» unimplemented feature
0 pass
1 skip
0 fail
Ran 1 test across 1 file. [74.00ms]See also: