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("snapshot", () => { expect({ foo: "bar" }).toMatchSnapshot(); });
__snapshots__
test ├── __snapshots__ │ └── snap.test.ts.snap └── snap.test.ts
--update-snapshots
bun test --update-snapshots
test/snap.test.ts: ✓ snapshot [0.86ms] 1 pass 0 fail snapshots: +1 added # 快照已重新生成 1 expect() calls Ran 1 test across 1 file. [102.00ms]