Skip to content

Type Alias: UpdateSnapshotsMode

@termwright/test


@termwright/test / UpdateSnapshotsMode

UpdateSnapshotsMode = "all" | "changed" | "missing" | "none"

Defined in: test/src/config.ts:31

Snapshot writing policy.

  • all — rewrite every snapshot, even matching ones.
  • changed — write missing snapshots and overwrite mismatching ones.
  • missing — write snapshots that do not exist yet; mismatches still fail.
  • none — never write; a missing snapshot fails the test.