| 475 | expect(root).toMatchRenderedOutput('0'); |
| 476 | |
| 477 | const update = value => { |
| 478 | setCounter(previous => { |
| 479 | Scheduler.log(`Compute state (${previous} -> ${value})`); |
| 480 | return value; |
| 481 | }); |
| 482 | }; |
| 483 | ReactTestRenderer.unstable_batchedUpdates(() => { |
| 484 | update(0); |
| 485 | update(0); |
no test coverage detected