ReactTestRenderer = require('react-test-renderer');
      });
      it('should invoke precommit lifecycle methods twice in DEV', () => {
        const {StrictMode} = React;
        let log = [];
        let shouldComponentUpdate = false;
        function Root() {
          return (
            <StrictMode>
              <ClassComponent />
            </StrictMode>
          );
        }
        class ClassComponent extends React.Component {
          state = {};
          static getDerivedStateFromProps() {
            log.push('getDerivedStateFromProps');
            return null;
          }
          constructor(props) {
            super(props);
            log.push('constructor');
          }
          componentDidMount() {
            log.push('componentDidMount');
          }
          componentDidUpdate() {
            log.push('componentDidUpdate');
          }
          componentWillUnmount() {