(reason: unknown)
| 984 | describe('one that throws', () => { |
| 985 | const unhandled: unknown[] = []; |
| 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)); |