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

Method getCjsMockModule

packages/jest-runtime/src/internals/Resolution.ts:96–100  ·  view source on GitHub ↗
(from: string, moduleName: string)

Source from the content-addressed store, hash-verified

94 }
95
96 getCjsMockModule(from: string, moduleName: string): string | null {
97 return this.resolver.getMockModule(from, moduleName, {
98 conditions: this.cjsConditions,
99 });
100 }
101
102 getEsmMockModule(from: string, moduleName: string): string | null {
103 return this.resolver.getMockModule(from, moduleName, {

Callers 5

computeManualMockMethod · 0.95
resolveMethod · 0.80
decideSyncMethod · 0.80
requireModuleMethod · 0.80
Resolution.test.tsFile · 0.80

Calls 1

getMockModuleMethod · 0.65

Tested by

no test coverage detected