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.
A
Andrew Clark committed
6a0c56cffcaff62b666cdd5fbc1c02d1d3dc6402
Parent: 390fda7