MCPcopy
hub / github.com/webpack/webpack / normalizeForSnapshot

Function normalizeForSnapshot

test/checkArrayExpectation.js:86–87  ·  test/checkArrayExpectation.js::normalizeForSnapshot
(items, testDirectory)

Source from the content-addressed store, hash-verified

84 * @returns {EXPECTED_ANY[]} normalized items for snapshot comparison
85 */
86const normalizeForSnapshot = (items, testDirectory) =>
87 items.map((item) => normalizeString(item.message, testDirectory) || class="st">"");
88
89/**
90 * @param {EXPECTED_ANY} expected expected value or RegExp or array

Callers 1

Calls 1

normalizeStringFunction · 0.85

Tested by

no test coverage detected