()
| 86 | let idx = 0 |
| 87 | expect.extend({ |
| 88 | toBeJestCompatible() { |
| 89 | idx++ |
| 90 | fn({ poll: this.poll }) |
| 91 | return { |
| 92 | pass: idx > 2, |
| 93 | message: () => 'ok', |
| 94 | } |
| 95 | }, |
| 96 | }) |
| 97 | await expect.poll(() => 1, { interval: 10 }).toBeJestCompatible() |
| 98 | expect(fn).toHaveBeenCalledTimes(3) |