Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
test.todo
import { test, expect } from "bun:test"; // 稍后编写 test.todo("未实现的功能");
bun test
todo
test.test.ts: ✓ add [0.03ms] ✓ multiply [0.02ms] ✎ 未实现的功能 2 通过 1 待办 0 失败 2 个 expect() 调用 跨 1 个文件运行了 3 个测试。 [74.00ms]
import { test, expect } from "bun:test"; test.todo("未实现的功能", () => { expect(Bun.isAwesome()).toBe(true); });
--todo
bun test --todo
my.test.ts: ✗ 未实现的功能 ^ 此测试标记为待办但通过了。如果测试的行为现在已生效,请删除 `.todo` 0 通过 1 失败 1 个 expect() 调用 $ echo $? 1 # 这是上一条命令的退出码