Function
warned
(spy: { mock: { calls: unknown[][] } }, text: string)
Source from the content-addressed store, hash-verified
| 986 | const recordUnhandled = (reason: unknown) => { unhandled.push(reason); }; |
| 987 | const hostBug = () => { throw new Error('host bug'); }; |
| 988 | const warned = (spy: { mock: { calls: unknown[][] } }, text: string) => |
| 989 | spy.mock.calls.some((c) => typeof c[0] === 'string' && c[0].includes(text)); |
| 990 | |
| 991 | beforeEach(() => { |
| 992 | unhandled.length = 0; |
Tested by
no test coverage detected