(Scheduler)
| 20 | } |
| 21 | |
| 22 | function assertYieldsWereCleared(Scheduler) { |
| 23 | const actualYields = Scheduler.unstable_clearYields(); |
| 24 | if (actualYields.length !== 0) { |
| 25 | throw new Error( |
| 26 | 'Log of yielded values is not empty. ' + |
| 27 | 'Call expect(Scheduler).toHaveYielded(...) first.' |
| 28 | ); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | function toMatchRenderedOutput(ReactNoop, expectedJSX) { |
| 33 | if (typeof ReactNoop.getChildrenAsJSX === 'function') { |
no outgoing calls
no test coverage detected