From 895bf5ea46c3335a7a9444f076fbea8962b95afe Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 16 Sep 2026 18:18:37 -0500 Subject: [PATCH 1/2] docs: remove stray TestSnapshotOptions.mode reference - removes non-existent `mode` option - adds `msg` option --- runtime/test/snapshots.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/test/snapshots.md b/runtime/test/snapshots.md index 37c5f7fb9..8aead85c0 100644 --- a/runtime/test/snapshots.md +++ b/runtime/test/snapshots.md @@ -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 From 676f78a83aefd73b10e183fc792350b54d2283c3 Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 16 Sep 2026 18:28:23 -0500 Subject: [PATCH 2/2] Update last_modified date in snapshots.md --- runtime/test/snapshots.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/test/snapshots.md b/runtime/test/snapshots.md index 8aead85c0..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: