dillon1000/react

Commit

ReactNoop.flush methods return an array of yielded values

Allows us to make assertions on the values that are yielded when
performing work. In our existing tests, we do this manually by pushing
into an array.

ReactNoop.flushThrough extends this concept. It accepts an array of
expected values and flushes until those values are yielded.
Browse files
Changed paths5 files
First-parent comparison
M package.json ModifiedM scripts/rollup/bundles.js ModifiedM scripts/rollup/results.json ModifiedM src/renderers/noop/ReactNoopEntry.js ModifiedM yarn.lock Modified
Patch

Files changed

Rendering syntax-highlighted changes…