Bun 的测试运行器通过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.
.toMatchSnapshot() 支持类似 Jest 的快照测试。
第一次执行此测试时,Bun 会将快照文件写入磁盘,存放在与测试文件同级的名为
__snapshots__ 的目录中。
File Tree
要重新生成快照,请使用
--update-snapshots 标志。
terminal
完整的 Bun 测试运行器快照文档请参见 Docs > Test Runner > Snapshots。