Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1256
const
isMock = (received: any) =>
1257
received != null && received._isMockFunction === true;
1258
1259
const
isSpy = (received: any) =>
1260
received != null &&
Callers
2
ensureMockOrSpy
Function · 0.85
ensureMock
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected