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.
expect(renderer).toFlushAll(['last']);
      expect(callback).toHaveBeenCalledTimes(1);
    });
    it('does not record times for components outside of Profiler tree', () => {
      ReactTestRenderer.create(
        <div>
          <AdvanceTime />
          <AdvanceTime />
          <AdvanceTime />
          <AdvanceTime />
          <AdvanceTime />
        </div>,
      );
      
      
      
      
      
      expect(mockNow).toHaveBeenCalledTimes(3);
    });
    it('logs render times for both mount and update', () => {
      const callback = jest.fn();
      advanceTimeBy(5); 
      const renderer = ReactTestRenderer.create(
        <React.unstable_Profiler id="test" onRender={callback}>
          <AdvanceTime />
        </React.unstable_Profiler>,
      );
      expect(callback).toHaveBeenCalledTimes(1);
      let [call] = callback.mock.calls;