diff --git a/runtime/test/snapshots.md b/runtime/test/snapshots.md index 37c5f7fb9..62156a5e0 100644 --- a/runtime/test/snapshots.md +++ b/runtime/test/snapshots.md @@ -1,5 +1,5 @@ --- -last_modified: 2026-06-25 +last_modified: 2026-09-16 title: "Snapshot testing" description: "Capture program output as reference snapshots with Deno's built-in test runner, compare against them on every run, and update them with deno test --update-snapshots." oldUrl: @@ -151,8 +151,8 @@ The most useful options: - `dir` and `path`: control where the snapshot file is written, resolved relative to the test file. A custom location requires read and write permission. -- `mode`: force `"assert"` or `"update"` behavior for a single call, regardless - of the `--update-snapshots` flag. +- `msg`: Failure message to use when the assertion fails, instead of the + generated diff message. Classes can customize their own serialization by implementing `Symbol.for("Deno.customInspect")`, since the default serializer is built on