(f: () => unknown)
| 1399 | } |
| 1400 | |
| 1401 | function getError(f: () => unknown) { |
| 1402 | try { |
| 1403 | f() |
| 1404 | } |
| 1405 | catch (error) { |
| 1406 | const processed = processError(error) |
| 1407 | return [stripVTControlCharacters(processed.message), stripVTControlCharacters(trim(processed.diff!))] |
| 1408 | } |
| 1409 | return expect.unreachable() |
| 1410 | } |
| 1411 | |
| 1412 | it('toMatchObject', () => { |
| 1413 | expect(() => expect(null).toMatchObject(new Set())) |
no test coverage detected