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.
.toMatchSnapshot()
import { test, expect } from "bun:test"; test("快照", () => { expect({ foo: "bar" }).toMatchSnapshot(); });
__snapshots__
test ├── __snapshots__ │ └── snap.test.ts.snap └── snap.test.ts
--update-snapshots
bun test --update-snapshots
test/snap.test.ts: ✓ 快照 [0.86ms] 1 通过 0 失败 快照:+1 已添加 # 快照已重新生成 1 个 expect() 调用 跨 1 个文件运行了 1 个测试。 [102.00ms]