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

Function transitiveCacheKey

packages/jest-runtime/src/internals/MockState.ts:18–19  ·  view source on GitHub ↗
(from: string, moduleID: string)

Source from the content-addressed store, hash-verified

16const unmockRegExpCache = new WeakMap<Config.ProjectConfig, RegExp>();
17
18const transitiveCacheKey = (from: string, moduleID: string) =>
19 `${from}\0${moduleID}`;
20
21export type MockDecision = {shouldMock: boolean; moduleID: string};
22

Callers 2

decideEsmAsyncMethod · 0.85
decideSyncMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected