Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions runtime/test/snapshots.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down
Loading