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(callback).toHaveBeenCalledTimes(1);
      [call] = callback.mock.calls;
      expect(call).toHaveLength(6);
      expect(call[0]).toBe('test');
      expect(call[1]).toBe('update');
      expect(call[2]).toBe(4); 
      expect(call[3]).toBe(4); 
      expect(call[4]).toBe(65); 
      expect(call[5]).toBe(69); 
    });
    it('includes render times of nested Profilers in their parent times', () => {
      const callback = jest.fn();
      advanceTimeBy(5); 
      ReactTestRenderer.create(
        <React.Fragment>
          <React.unstable_Profiler id="parent" onRender={callback}>
            <AdvanceTime byAmount={10}>
              <React.unstable_Profiler id="child" onRender={callback}>
                <AdvanceTime byAmount={20} />
              </React.unstable_Profiler>
            </AdvanceTime>
          </React.unstable_Profiler>
        </React.Fragment>,
      );
      expect(callback).toHaveBeenCalledTimes(2);
      
      const [childCall, parentCall] = callback.mock.calls;
      expect(childCall[0]).toBe('child');
      expect(parentCall[0]).toBe('parent');