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

Function object

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

Source from the content-addressed store, hash-verified

121
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

Callers 2

index.test.jsFile · 0.85
resetFunction · 0.85

Calls 1

createMethod · 0.45

Tested by

no test coverage detected