While working on the DevTools profiler, I've noticed that durations are sometimes incorrect. This seems to be vaguely related to high/low priority state updates. Need to track this down more so I'm filing an issue for myself.
</React.unstable_Profiler>
            </React.unstable_Profiler>,
          );
          expect(renderer.toJSON()).toMatchSnapshot();
        });
      });
    });
  });
  describe('onRender callback', () => {
    let AdvanceTime;
    let advanceTimeBy;
    let mockNow;
    const mockNowForTests = () => {
      let currentTime = 0;
      mockNow = jest.fn().mockImplementation(() => currentTime);
      ReactTestRenderer.unstable_setNowImplementation(mockNow);
      advanceTimeBy = amount => {
        currentTime += amount;
      };
    };
    beforeEach(() => {
      jest.resetModules();
      loadModules();
      mockNowForTests();
      AdvanceTime = class extends React.Component {
        static defaultProps = {
          byAmount: 10,
          shouldComponentUpdate: true,
        };
        shouldComponentUpdate(nextProps) {