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

Function getSnapshotPath

test/common/assertSnapshot.js:152–155  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

150}
151
152function getSnapshotPath(filename) {
153 const { name, dir } = path.parse(filename);
154 return path.resolve(dir, `${name}.snapshot`);
155}
156
157async function assertSnapshot(actual, filename = process.argv[1]) {
158 const snapshot = getSnapshotPath(filename);

Callers 1

assertSnapshotFunction · 0.85

Calls 2

parseMethod · 0.65
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…