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

Method getEsmModuleId

packages/jest-runtime/src/internals/MockState.ts:340–346  ·  view source on GitHub ↗
(from: string, moduleName?: string)

Source from the content-addressed store, hash-verified

338 );
339 }
340 getEsmModuleId(from: string, moduleName?: string): string {
341 return this.resolution.getEsmModuleId(
342 this.virtualEsmMocks,
343 from,
344 moduleName,
345 );
346 }
347 getEsmModuleIdAsync(from: string, moduleName?: string): Promise<string> {
348 return this.resolution.getEsmModuleIdAsync(
349 this.virtualEsmMocks,

Callers 7

constructorMethod · 0.45
shouldMockEsmSyncMethod · 0.45
decideSyncMethod · 0.45
setModuleMockMethod · 0.45
unmockEsmMethod · 0.45
MockState.test.tsFile · 0.45
Resolution.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected