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

Method unstable_importModule

packages/jest-runtime/src/index.ts:365–370  ·  view source on GitHub ↗
(
    from: string,
    moduleName?: string,
  )

Source from the content-addressed store, hash-verified

363 }
364
365 async unstable_importModule(
366 from: string,
367 moduleName?: string,
368 ): Promise<unknown | void> {
369 return this.esmLoader.loadAndEvaluate(from, moduleName);
370 }
371
372 requireModule<T = unknown>(
373 from: string,

Callers 6

runTestInternalFunction · 0.95
jestAdapterFunction · 0.80
createRuntime.jsFile · 0.80
jasmine2Function · 0.80

Calls 1

loadAndEvaluateMethod · 0.80

Tested by

no test coverage detected