This feature is meant to warn about sync priority updates that block paint (e.g. set state in layout effect) but it appears to also warn for transition priority updates. We should fix this.
throw Error('Expected error');
        }
        if (gate(flags => flags.enableSchedulingProfiler)) {
          const testMarks = [creactCpuProfilerSample()];
          
          const root = ReactDOM.createRoot(document.createElement('div'));
          act(() =>
            root.render(
              <ErrorBoundary>
                <ExampleThatThrows />
              </ErrorBoundary>,
            ),
          );
          testMarks.push(...createUserTimingData(clearedMarks));
          const data = await preprocessData(testMarks);
          expect(data.thrownErrors).toHaveLength(2);
          expect(data.thrownErrors[0].message).toMatchInlineSnapshot(
            '"Expected error"',
          );
        }
      });
    });
    describe('suspend during an update', () => {
      
      
      it('should warn about suspending during an udpate', async () => {
        let promise = null;
        let resolvedValue = null;
        function readValue(value) {