MCPcopy Create free account
hub / github.com/BetaSu/big-react / assertYieldsWereCleared

Function assertYieldsWereCleared

scripts/jest/reactTestMatchers.js:22–30  ·  view source on GitHub ↗
(Scheduler)

Source from the content-addressed store, hash-verified

20}
21
22function 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
32function toMatchRenderedOutput(ReactNoop, expectedJSX) {
33 if (typeof ReactNoop.getChildrenAsJSX === 'function') {

Callers 1

toMatchRenderedOutputFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected