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

Method resolveEsm

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

Source from the content-addressed store, hash-verified

52 }
53
54 resolveEsm(from: string, to: string | undefined): string {
55 if (!to) return from;
56 return this.resolveCached(from, to, this.esmCache, this.esmConditions);
57 }
58
59 resolveEsmAsync(from: string, to: string | undefined): Promise<string> {
60 if (!to) return Promise.resolve(from);

Callers 5

tryLoadGraphSyncMethod · 0.80
loadEsmModuleMethod · 0.80
decideSyncMethod · 0.80
Resolution.test.tsFile · 0.80

Calls 1

resolveCachedMethod · 0.95

Tested by

no test coverage detected