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

Method create

packages/jest-haste-map/src/index.ts:232–242  ·  view source on GitHub ↗
(options: Options)

Source from the content-addressed store, hash-verified

230 }
231
232 static async create(options: Options): Promise<IHasteMap> {
233 if (options.hasteMapModulePath) {
234 const CustomHasteMap = require(options.hasteMapModulePath);
235 return new CustomHasteMap(options);
236 }
237 const hasteMap = new HasteMap(options);
238
239 await hasteMap.setupCachePath(options);
240
241 return hasteMap;
242 }
243
244 private constructor(options: Options) {
245 super();

Callers 15

_runTestFunction · 0.45
scheduleTestsMethod · 0.45
_partitionTestsMethod · 0.45
FarmClass · 0.45
getSnapshotDataFunction · 0.45
GlobalProxyClass · 0.45
deepCyclicCopyObjectFunction · 0.45
createHasteMapMethod · 0.45
forMethod · 0.45
cjsRequire.test.tsFile · 0.45
setModuleMethod · 0.45

Calls 1

setupCachePathMethod · 0.95

Tested by 5

objectFunction · 0.36
hm_itFunction · 0.36
assertPrintedJSXFunction · 0.36
resetFunction · 0.36
getSnapshotOfCopyFunction · 0.36