(fn: any)
| 15 | } from './types' |
| 16 | |
| 17 | export function isMockFunction(fn: any): fn is Mock { |
| 18 | return ( |
| 19 | typeof fn === 'function' && '_isMockFunction' in fn && fn._isMockFunction === true |
| 20 | ) |
| 21 | } |
| 22 | |
| 23 | const MOCK_RESTORE = new Set<() => void>() |
| 24 | // Jest keeps the state in a separate WeakMap which is good for memory, |
no outgoing calls
no test coverage detected