MCPcopy
hub / github.com/vitest-dev/vitest / resetSnapshotUpdate

Method resetSnapshotUpdate

packages/vitest/src/node/core.ts:1335–1338  ·  view source on GitHub ↗

* Disable the mode that allows updating snapshots when running tests.

()

Source from the content-addressed store, hash-verified

1333 * Disable the mode that allows updating snapshots when running tests.
1334 */
1335 public resetSnapshotUpdate(): void {
1336 delete this.configOverride.snapshotOptions
1337 this.snapshot.options.updateSnapshot = this.config.snapshotOptions.updateSnapshot
1338 }
1339
1340 /**
1341 * Set the global test name pattern to a regexp.

Callers 1

updateSnapshotMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected