MCPcopy Index your code
hub / github.com/nodejs/node / setSnapshot

Method setSnapshot

lib/internal/test_runner/snapshot.js:80–82  ·  view source on GitHub ↗
(id, value)

Source from the content-addressed store, hash-verified

78 }
79
80 setSnapshot(id, value) {
81 this.snapshots[escapeSnapshotKey(id)] = value;
82 }
83
84 nextId(name) {
85 const count = this.nameCounts.get(name) ?? 1;

Callers 2

createAssertMethod · 0.80

Calls 1

escapeSnapshotKeyFunction · 0.85

Tested by

no test coverage detected