import {create, act} from 'react-test-renderer';import App from './app.js'; // The component being tested// render the componentlet root; act(() => { root = create()});// make assertions on root expect(root.toJSON()).toMatchSnapshot();// update with some different propsact(() => { root.update();})// make assertions on root expect(root.toJSON()).toMatchSnapshot();