MCPcopy
hub / github.com/webpack/webpack / expectSnapshotsState

Function expectSnapshotsState

test/FileSystemInfo.unittest.js:218–230  ·  view source on GitHub ↗
(
		/** @type {IFs} */ fs,
		/** @type {Snapshot | null | undefined} */ snapshot,
		/** @type {Snapshot | null | undefined} */ snapshot2,
		/** @type {boolean} */ expected,
		/** @type {(err?: Error | null) => void} */ callback
	)

Source from the content-addressed store, hash-verified

216 };
217
218 const expectSnapshotsState = (
219 /** @type {IFs} */ fs,
220 /** @type {Snapshot | null | undefined} */ snapshot,
221 /** @type {Snapshot | null | undefined} */ snapshot2,
222 /** @type {boolean} */ expected,
223 /** @type {(err?: Error | null) => void} */ callback
224 ) => {
225 expectSnapshotState(fs, snapshot, expected, (err) => {
226 if (err) return callback(err);
227 if (!snapshot2) return callback();
228 expectSnapshotState(fs, snapshot2, expected, callback);
229 });
230 };
231
232 const expectSnapshotState = (
233 /** @type {IFs} */ fs,

Callers 1

Calls 2

expectSnapshotStateFunction · 0.85
callbackFunction · 0.70

Tested by

no test coverage detected