@@ -126,21 +126,20 @@ describe('ReactExpiration', () => {
126126
127127 it ( 'increases priority of updates as time progresses' , async ( ) => {
128128 if ( gate ( flags => flags . forceConcurrentByDefaultForTesting ) ) {
129- // TODO: How does this pass on main?
130- // ReactNoop.render(<span prop="done" />);
131- // expect(ReactNoop).toMatchRenderedOutput(null);
132- //
133- // // Nothing has expired yet because time hasn't advanced.
134- // flushNextRenderIfExpired();
135- // expect(ReactNoop).toMatchRenderedOutput(null);
136- // // Advance time a bit, but not enough to expire the low pri update.
137- // ReactNoop.expire(4500);
138- // flushNextRenderIfExpired();
139- // expect(ReactNoop).toMatchRenderedOutput(null);
140- // // Advance by another second. Now the update should expire and flush.
141- // ReactNoop.expire(500);
142- // flushNextRenderIfExpired();
143- // expect(ReactNoop).toMatchRenderedOutput(<span prop="done" />);
129+ ReactNoop . render ( < span prop = "done" /> ) ;
130+ expect ( ReactNoop ) . toMatchRenderedOutput ( null ) ;
131+
132+ // Nothing has expired yet because time hasn't advanced.
133+ flushNextRenderIfExpired ( ) ;
134+ expect ( ReactNoop ) . toMatchRenderedOutput ( null ) ;
135+ // Advance time a bit, but not enough to expire the low pri update.
136+ ReactNoop . expire ( 4500 ) ;
137+ flushNextRenderIfExpired ( ) ;
138+ expect ( ReactNoop ) . toMatchRenderedOutput ( null ) ;
139+ // Advance by another second. Now the update should expire and flush.
140+ ReactNoop . expire ( 500 ) ;
141+ flushNextRenderIfExpired ( ) ;
142+ expect ( ReactNoop ) . toMatchRenderedOutput ( < span prop = "done" /> ) ;
144143 } else {
145144 ReactNoop . render ( < Text text = "Step 1" /> ) ;
146145 React . startTransition ( ( ) => {
0 commit comments