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

Method resolveCjs

packages/jest-runtime/src/internals/Resolution.ts:49–52  ·  view source on GitHub ↗
(from: string, to: string | undefined)

Source from the content-addressed store, hash-verified

47 }
48
49 resolveCjs(from: string, to: string | undefined): string {
50 if (!to) return from;
51 return this.resolveCached(from, to, this.cjsCache, this.cjsConditions);
52 }
53
54 resolveEsm(from: string, to: string | undefined): string {
55 if (!to) return from;

Callers 7

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

Calls 1

resolveCachedMethod · 0.95

Tested by

no test coverage detected