(root)
| 27 | } |
| 28 | |
| 29 | function assertYieldsWereCleared(root) { |
| 30 | const Scheduler = root._Scheduler; |
| 31 | const actualYields = Scheduler.unstable_clearLog(); |
| 32 | if (actualYields.length !== 0) { |
| 33 | const error = Error( |
| 34 | 'Log of yielded values is not empty. ' + |
| 35 | 'Call expect(ReactTestRenderer).unstable_toHaveYielded(...) first.', |
| 36 | ); |
| 37 | Error.captureStackTrace(error, assertYieldsWereCleared); |
| 38 | throw error; |
| 39 | } |
| 40 | assertConsoleLogsCleared(); |
| 41 | } |
| 42 | |
| 43 | function createJSXElementForTestComparison(type, props) { |
| 44 | if (__DEV__) { |
no test coverage detected