MCPcopy Create free account
hub / github.com/testing-library/react-testing-library / isSpy

Function isSpy

tests/failOnUnexpectedConsoleCalls.js:54–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54const isSpy = spy =>
55 (spy.calls && typeof spy.calls.count === 'function') ||
56 spy._isMockFunction === true
57
58const flushUnexpectedConsoleCalls = (
59 mockMethod,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…