(ReactNoop, expectedJSX)
| 33 | } |
| 34 | |
| 35 | function toMatchRenderedOutput(ReactNoop, expectedJSX) { |
| 36 | if (typeof ReactNoop.getChildrenAsJSX === 'function') { |
| 37 | const Scheduler = ReactNoop._Scheduler; |
| 38 | assertYieldsWereCleared(Scheduler, toMatchRenderedOutput); |
| 39 | return captureAssertion(() => { |
| 40 | expect(ReactNoop.getChildrenAsJSX()).toEqual(expectedJSX); |
| 41 | }); |
| 42 | } |
| 43 | return JestReact.unstable_toMatchRenderedOutput(ReactNoop, expectedJSX); |
| 44 | } |
| 45 | |
| 46 | module.exports = { |
| 47 | toMatchRenderedOutput, |
nothing calls this directly
no test coverage detected