Skip to content

لتخطي اختبار مع مُشغل اختبارات Bun، استخدم دالة test.skip.

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

test.skip("ميزة غير مُطبقة", () => {
  expect(Bun.isAwesome()).toBe(true);
});

تشغيل bun test لن ينفذ هذا الاختبار. سيتم وضع علامة عليه كـ "تم تخطيه" في ناتج الطرفية.

sh
bun test
txt
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]

راجع أيضًا:

Bun بواسطة www.bunjs.com.cn تحرير