(Scheduler, caller)
| 21 | } |
| 22 | |
| 23 | function assertYieldsWereCleared(Scheduler, caller) { |
| 24 | const actualYields = Scheduler.unstable_clearLog(); |
| 25 | if (actualYields.length !== 0) { |
| 26 | const error = Error( |
| 27 | 'The event log is not empty. Call assertLog(...) first.' |
| 28 | ); |
| 29 | Error.captureStackTrace(error, caller); |
| 30 | throw error; |
| 31 | } |
| 32 | assertConsoleLogsCleared(); |
| 33 | } |
| 34 | |
| 35 | function toMatchRenderedOutput(ReactNoop, expectedJSX) { |
| 36 | if (typeof ReactNoop.getChildrenAsJSX === 'function') { |
no test coverage detected