为了提醒自己稍后编写测试,可以使用Documentation Index
Fetch the complete documentation index at: https://bun.zhcndoc.com/llms.txt
Use this file to discover all available pages before exploring further.
test.todo 函数。无需提供测试实现。
bun test 的输出会显示遇到了多少个 todo 测试。
terminal
也可以选择提供测试实现。
如果提供了实现,除非传递了
--todo 标志,否则它不会被执行。如果传递了 --todo 标志,测试将被执行,并且测试运行器预期其失败!如果 todo 测试通过,bun test 运行将返回非零退出码以表示失败。
terminal
另见: