@@ -127,20 +127,20 @@ describe('ReactExpiration', () => {
127127 it ( 'increases priority of updates as time progresses' , async ( ) => {
128128 if ( gate ( flags => flags . forceConcurrentByDefaultForTesting ) ) {
129129 // 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" />);
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" /> ) ;
144144 } else {
145145 ReactNoop . render ( < Text text = "Step 1" /> ) ;
146146 React . startTransition ( ( ) => {
0 commit comments