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

Method jestObjectFor

packages/jest-runtime/src/internals/JestGlobals.ts:107–113  ·  view source on GitHub ↗
(from: string)

Source from the content-addressed store, hash-verified

105 }
106
107 jestObjectFor(from: string): Jest {
108 const cached = this.cache.get(from);
109 if (cached) return cached;
110 const fresh = this.buildJestObject(from);
111 this.cache.set(from, fresh);
112 return fresh;
113 }
114
115 envGlobals(): EnvironmentGlobals {
116 if (this.envGlobalsOverride) {

Callers 5

cjsGlobalsMethod · 0.95
tryLoadGraphSyncMethod · 0.80
loadEsmModuleMethod · 0.80
execMethod · 0.80

Calls 3

buildJestObjectMethod · 0.95
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected