Run the tests: npm install npm run test and observe how the test fails on the findByText("data") statement. The UI should have been rendered with the updated "data" state, but it wasn't.