Bun テストランナーでテストをスキップするには、test.skip 関数を使用します。
ts
import { test } from "bun:test";
test.skip("未実装の機能", () => {
expect(Bun.isAwesome()).toBe(true);
});bun test を実行しても、このテストは実行されません。ターミナル出力でスキップ済みとしてマークされます。
sh
bun testtxt
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]関連項目: