MCPcopy
hub / github.com/jestjs/jest / createMap

Function createMap

packages/jest-haste-map/src/crawlers/__tests__/node.test.js:119–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117const normalize = path =>
118 process.platform === 'win32' ? path.replaceAll('/', '\\') : path;
119const createMap = obj =>
120 new Map(Object.keys(obj).map(key => [normalize(key), obj[key]]));
121
122const rootDir = '/project';
123let mockResponse;

Callers 1

node.test.jsFile · 0.70

Calls 1

normalizeFunction · 0.70

Tested by

no test coverage detected