Skip to content

Per saltare un test con il test runner di Bun, usa la funzione test.skip.

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

test.skip("funzionalità non implementata", () => {
  expect(Bun.isAwesome()).toBe(true);
});

L'esecuzione di bun test non eseguirà questo test. Verrà contrassegnato come saltato nell'output del terminale.

sh
bun test
txt
test.test.ts:
✓ addizione [0.03ms]
✓ moltiplicazione [0.02ms]
» funzionalità non implementata

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

Vedi anche:

Bun a cura di www.bunjs.com.cn