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

Function createMap

packages/jest-haste-map/src/__tests__/index.test.js:124–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122const cacheFilePath = '/cache-file';
123const object = data => Object.assign(Object.create(null), data);
124const createMap = obj => new Map(Object.keys(obj).map(key => [key, obj[key]]));
125
126// Jest toEqual does not match Map instances from different contexts
127// This normalizes them for the uses cases in this test

Callers 2

index.test.jsFile · 0.70
setupDuplicatesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected