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

Function isMock

packages/expect/src/spyMatchers.ts:1256–1257  ·  view source on GitHub ↗
(received: any)

Source from the content-addressed store, hash-verified

1254};
1255
1256const isMock = (received: any) =>
1257 received != null && received._isMockFunction === true;
1258
1259const isSpy = (received: any) =>
1260 received != null &&

Callers 2

ensureMockOrSpyFunction · 0.85
ensureMockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected