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

Method mocked

packages/jest-mock/src/index.ts:1444–1449  ·  view source on GitHub ↗
(
    source: T,
    _options?: {shallow: boolean},
  )

Source from the content-addressed store, hash-verified

1442 options: {shallow: true},
1443 ): MockedShallow<T>;
1444 mocked<T extends object>(
1445 source: T,
1446 _options?: {shallow: boolean},
1447 ): Mocked<T> | MockedShallow<T> {
1448 return source as Mocked<T> | MockedShallow<T>;
1449 }
1450}
1451
1452const JestMock = new ModuleMocker(globalThis);

Calls

no outgoing calls

Tested by 3

assertCallsToChildFunction · 0.64
assertCallsToChildFunction · 0.64
buildPromiseFunction · 0.64