'constructor',
        'constructor',
        'getDerivedStateFromProps',
        'getDerivedStateFromProps',
        'render',
        'render',
        'componentDidMount',
      ]);
      log = [];
      shouldComponentUpdate = true;
      component.update(<ClassComponent />);
      expect(log).toEqual([
        'getDerivedStateFromProps',
        'getDerivedStateFromProps',
        'shouldComponentUpdate',
        'render',
        'render',
        'componentDidUpdate',
      ]);
      log = [];
      shouldComponentUpdate = false;
      component.update(<ClassComponent />);
      expect(log).toEqual([
        'getDerivedStateFromProps',
        'getDerivedStateFromProps',
        'shouldComponentUpdate',
      ]);
    });
    it('should invoke setState callbacks twice', () => {
      class ClassComponent extends React.Component {