()
| 180 | const Wrapper = () => <Parent /> |
| 181 | |
| 182 | function changeStuff() { |
| 183 | act(() => { |
| 184 | transaction(() => { |
| 185 | data.items[0].label = "hello" // schedules state change for Child |
| 186 | data.items[0] = createItem(2, "test") // Child should still receive new prop! |
| 187 | }) |
| 188 | |
| 189 | // @ts-ignore |
| 190 | this.setState({}) // trigger update |
| 191 | }) |
| 192 | } |
| 193 | |
| 194 | const { container } = render(<Wrapper />) |
| 195 | expect(events.sort()).toEqual( |
nothing calls this directly
no test coverage detected
searching dependent graphs…