()
| 156 | |
| 157 | it('should flush state updates if there are pending state updates before `act` call', () => { |
| 158 | function CounterButton() { |
| 159 | const [count, setCount] = useState(0); |
| 160 | const increment = () => setCount(count => count + 1); |
| 161 | return <button onClick={increment}>{count}</button>; |
| 162 | } |
| 163 | |
| 164 | render(<CounterButton />, scratch); |
| 165 | const button = scratch.querySelector('button'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…