103
);
104
105
expect(logs).toEqual([
106
- `group: ⚛️ render (${SYNC_LANE_STRING})`,
107
- 'log: ⚛️ Example suspended',
108
- `groupEnd: ⚛️ render (${SYNC_LANE_STRING})`,
106
+ `group: ⚛ render (${SYNC_LANE_STRING})`,
107
+ 'log: ⚛ Example suspended',
108
+ `groupEnd: ⚛ render (${SYNC_LANE_STRING})`,
109
]);
110
111
logs.splice(0);
113
resolveFakeSuspensePromise();
114
await waitForAll([]);
115
116
- expect(logs).toEqual(['log: ⚛️ Example resolved']);
116
+ expect(logs).toEqual(['log: ⚛ Example resolved']);
117
});
118
119
// @gate experimental && build === 'development' && enableDebugTracing && enableCPUSuspense && !disableLegacyMode
139
);
140
141
expect(logs).toEqual([
142
- `group: ⚛️ render (${SYNC_LANE_STRING})`,
142
+ `group: ⚛ render (${SYNC_LANE_STRING})`,
143
'log: <Wrapper/>',
144
- `groupEnd: ⚛️ render (${SYNC_LANE_STRING})`,
144
+ `groupEnd: ⚛ render (${SYNC_LANE_STRING})`,
145
]);
146
147
logs.splice(0);
149
await waitForPaint([]);
150
151
expect(logs).toEqual([
152
- `group: ⚛️ render (${RETRY_LANE_STRING})`,
152
+ `group: ⚛ render (${RETRY_LANE_STRING})`,
153
'log: <Example/>',
154
- `groupEnd: ⚛️ render (${RETRY_LANE_STRING})`,
154
+ `groupEnd: ⚛ render (${RETRY_LANE_STRING})`,
155
]);
156
});
157
184
);
185
186
expect(logs).toEqual([
187
- `group: ⚛️ render (${DEFAULT_LANE_STRING})`,
188
- 'log: ⚛️ Example suspended',
189
- `groupEnd: ⚛️ render (${DEFAULT_LANE_STRING})`,
187
+ `group: ⚛ render (${DEFAULT_LANE_STRING})`,
188
+ 'log: ⚛ Example suspended',
189
+ `groupEnd: ⚛ render (${DEFAULT_LANE_STRING})`,
190
]);
191
192
logs.splice(0);
193
194
await act(async () => await resolveFakeSuspensePromise());
195
- expect(logs).toEqual(['log: ⚛️ Example resolved']);
195
+ expect(logs).toEqual(['log: ⚛ Example resolved']);
196
});
197
198
// @gate experimental && build === 'development' && enableDebugTracing && enableCPUSuspense
220
);
221
222
expect(logs).toEqual([
223
- `group: ⚛️ render (${DEFAULT_LANE_STRING})`,
223
+ `group: ⚛ render (${DEFAULT_LANE_STRING})`,
224
'log: <Wrapper/>',
225
- `groupEnd: ⚛️ render (${DEFAULT_LANE_STRING})`,
226
- `group: ⚛️ render (${RETRY_LANE_STRING})`,
225
+ `groupEnd: ⚛ render (${DEFAULT_LANE_STRING})`,
226
+ `group: ⚛ render (${RETRY_LANE_STRING})`,
227
'log: <Example/>',
228
- `groupEnd: ⚛️ render (${RETRY_LANE_STRING})`,
228
+ `groupEnd: ⚛ render (${RETRY_LANE_STRING})`,
229
]);
230
});
231
250
);
251
252
expect(logs).toEqual([
253
- `group: ⚛️ commit (${DEFAULT_LANE_STRING})`,
254
- `group: ⚛️ layout effects (${DEFAULT_LANE_STRING})`,
255
- `log: ⚛️ Example updated state (${SYNC_LANE_STRING})`,
256
- `groupEnd: ⚛️ layout effects (${DEFAULT_LANE_STRING})`,
257
- `groupEnd: ⚛️ commit (${DEFAULT_LANE_STRING})`,
253
+ `group: ⚛ commit (${DEFAULT_LANE_STRING})`,
254
+ `group: ⚛ layout effects (${DEFAULT_LANE_STRING})`,
255
+ `log: ⚛ Example updated state (${SYNC_LANE_STRING})`,
256
+ `groupEnd: ⚛ layout effects (${DEFAULT_LANE_STRING})`,
257
+ `groupEnd: ⚛ commit (${DEFAULT_LANE_STRING})`,
258
]);
259
});
260
283
);
284
285
expect(logs).toEqual([
286
- `group: ⚛️ render (${DEFAULT_LANE_STRING})`,
287
- `log: ⚛️ Example updated state (${DEFAULT_LANE_STRING})`,
288
- `groupEnd: ⚛️ render (${DEFAULT_LANE_STRING})`,
286
+ `group: ⚛ render (${DEFAULT_LANE_STRING})`,
287
+ `log: ⚛ Example updated state (${DEFAULT_LANE_STRING})`,
288
+ `groupEnd: ⚛ render (${DEFAULT_LANE_STRING})`,
289
]);
290
});
291
308
);
309
310
expect(logs).toEqual([
311
- `group: ⚛️ commit (${DEFAULT_LANE_STRING})`,
312
- `group: ⚛️ layout effects (${DEFAULT_LANE_STRING})`,
313
- `log: ⚛️ Example updated state (${SYNC_LANE_STRING})`,
314
- `groupEnd: ⚛️ layout effects (${DEFAULT_LANE_STRING})`,
315
- `groupEnd: ⚛️ commit (${DEFAULT_LANE_STRING})`,
311
+ `group: ⚛ commit (${DEFAULT_LANE_STRING})`,
312
+ `group: ⚛ layout effects (${DEFAULT_LANE_STRING})`,
313
+ `log: ⚛ Example updated state (${SYNC_LANE_STRING})`,
314
+ `groupEnd: ⚛ layout effects (${DEFAULT_LANE_STRING})`,
315
+ `groupEnd: ⚛ commit (${DEFAULT_LANE_STRING})`,
316
]);
317
});
318
334
);
335
});
336
expect(logs).toEqual([
337
- `group: ⚛️ passive effects (${DEFAULT_LANE_STRING})`,
338
- `log: ⚛️ Example updated state (${DEFAULT_LANE_STRING})`,
339
- `groupEnd: ⚛️ passive effects (${DEFAULT_LANE_STRING})`,
337
+ `group: ⚛ passive effects (${DEFAULT_LANE_STRING})`,
338
+ `log: ⚛ Example updated state (${DEFAULT_LANE_STRING})`,
339
+ `groupEnd: ⚛ passive effects (${DEFAULT_LANE_STRING})`,
340
]);
341
});
342
359
});
360
361
expect(logs).toEqual([
362
- `group: ⚛️ render (${DEFAULT_LANE_STRING})`,
363
- `log: ⚛️ Example updated state (${DEFAULT_LANE_STRING})`,
364
- `groupEnd: ⚛️ render (${DEFAULT_LANE_STRING})`,
362
+ `group: ⚛ render (${DEFAULT_LANE_STRING})`,
363
+ `log: ⚛ Example updated state (${DEFAULT_LANE_STRING})`,
364
+ `groupEnd: ⚛ render (${DEFAULT_LANE_STRING})`,
365
]);
366
});
367
381
);
382
383
expect(logs).toEqual([
384
- `group: ⚛️ render (${DEFAULT_LANE_STRING})`,
384
+ `group: ⚛ render (${DEFAULT_LANE_STRING})`,
385
'log: Hello from user code',
386
- `groupEnd: ⚛️ render (${DEFAULT_LANE_STRING})`,
386
+ `groupEnd: ⚛ render (${DEFAULT_LANE_STRING})`,
387
]);
388
});
389