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