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

Function toHaveYielded

scripts/jest/schedulerTestMatchers.js:69–74  ·  view source on GitHub ↗
(Scheduler, expectedYields)

Source from the content-addressed store, hash-verified

67}
68
69function toHaveYielded(Scheduler, expectedYields) {
70 return captureAssertion(() => {
71 const actualYields = Scheduler.unstable_clearYields();
72 expect(actualYields).toEqual(expectedYields);
73 });
74}
75
76function toFlushAndThrow(Scheduler, ...rest) {
77 assertYieldsWereCleared(Scheduler);

Callers

nothing calls this directly

Calls 1

captureAssertionFunction · 0.70

Tested by

no test coverage detected