@@ -204,10 +204,11 @@ describe(preprocessData, () => {
204
204
205
205
expect ( preprocessData ( [ cpuProfilerSample , randomSample ] ) ) . toStrictEqual ( {
206
206
duration : 0.002 ,
207
- events : [ ] ,
208
207
flamechart : [ ] ,
209
208
measures : [ ] ,
209
+ nativeEvents : [ ] ,
210
210
otherUserTimingMarks : [ ] ,
211
+ reactEvents : [ ] ,
211
212
startTime : 1 ,
212
213
} ) ;
213
214
} ) ;
@@ -258,15 +259,6 @@ describe(preprocessData, () => {
258
259
] ) ,
259
260
) . toStrictEqual ( {
260
261
duration : 0.008 ,
261
- events : [
262
- {
263
- componentStack : '' ,
264
- laneLabels : [ ] ,
265
- lanes : [ 9 ] ,
266
- timestamp : 0.002 ,
267
- type : 'schedule-render' ,
268
- } ,
269
- ] ,
270
262
flamechart : [ ] ,
271
263
measures : [
272
264
{
@@ -306,7 +298,17 @@ describe(preprocessData, () => {
306
298
type : 'layout-effects' ,
307
299
} ,
308
300
] ,
301
+ nativeEvents : [ ] ,
309
302
otherUserTimingMarks : [ ] ,
303
+ reactEvents : [
304
+ {
305
+ componentStack : '' ,
306
+ laneLabels : [ ] ,
307
+ lanes : [ 9 ] ,
308
+ timestamp : 0.002 ,
309
+ type : 'schedule-render' ,
310
+ } ,
311
+ ] ,
310
312
startTime : 1 ,
311
313
} ) ;
312
314
} ) ;
@@ -320,15 +322,6 @@ describe(preprocessData, () => {
320
322
const userTimingData = createUserTimingData ( clearedMarks ) ;
321
323
expect ( preprocessData ( userTimingData ) ) . toStrictEqual ( {
322
324
duration : 0.011 ,
323
- events : [
324
- {
325
- componentStack : '' ,
326
- laneLabels : [ 'Sync' ] ,
327
- lanes : [ 0 ] ,
328
- timestamp : 0.005 ,
329
- type : 'schedule-render' ,
330
- } ,
331
- ] ,
332
325
flamechart : [ ] ,
333
326
measures : [
334
327
{
@@ -368,6 +361,7 @@ describe(preprocessData, () => {
368
361
type : 'layout-effects' ,
369
362
} ,
370
363
] ,
364
+ nativeEvents : [ ] ,
371
365
otherUserTimingMarks : [
372
366
{
373
367
name : '__v3' ,
@@ -378,6 +372,15 @@ describe(preprocessData, () => {
378
372
timestamp : 0.004 ,
379
373
} ,
380
374
] ,
375
+ reactEvents : [
376
+ {
377
+ componentStack : '' ,
378
+ laneLabels : [ 'Sync' ] ,
379
+ lanes : [ 0 ] ,
380
+ timestamp : 0.005 ,
381
+ type : 'schedule-render' ,
382
+ } ,
383
+ ] ,
381
384
startTime : 1 ,
382
385
} ) ;
383
386
} ) ;
@@ -400,24 +403,6 @@ describe(preprocessData, () => {
400
403
const userTimingData = createUserTimingData ( clearedMarks ) ;
401
404
expect ( preprocessData ( userTimingData ) ) . toStrictEqual ( {
402
405
duration : 0.022 ,
403
- events : [
404
- {
405
- componentStack : '' ,
406
- laneLabels : [ 'Default' ] ,
407
- lanes : [ 4 ] ,
408
- timestamp : 0.005 ,
409
- type : 'schedule-render' ,
410
- } ,
411
- {
412
- componentName : 'App' ,
413
- componentStack : '' ,
414
- isCascading : false ,
415
- laneLabels : [ 'Default' ] ,
416
- lanes : [ 4 ] ,
417
- timestamp : 0.013 ,
418
- type : 'schedule-state-update' ,
419
- } ,
420
- ] ,
421
406
flamechart : [ ] ,
422
407
measures : [
423
408
{
@@ -511,6 +496,7 @@ describe(preprocessData, () => {
511
496
type : 'passive-effects' ,
512
497
} ,
513
498
] ,
499
+ nativeEvents : [ ] ,
514
500
otherUserTimingMarks : [
515
501
{
516
502
name : '__v3' ,
@@ -521,6 +507,24 @@ describe(preprocessData, () => {
521
507
timestamp : 0.004 ,
522
508
} ,
523
509
] ,
510
+ reactEvents : [
511
+ {
512
+ componentStack : '' ,
513
+ laneLabels : [ 'Default' ] ,
514
+ lanes : [ 4 ] ,
515
+ timestamp : 0.005 ,
516
+ type : 'schedule-render' ,
517
+ } ,
518
+ {
519
+ componentName : 'App' ,
520
+ componentStack : '' ,
521
+ isCascading : false ,
522
+ laneLabels : [ 'Default' ] ,
523
+ lanes : [ 4 ] ,
524
+ timestamp : 0.013 ,
525
+ type : 'schedule-state-update' ,
526
+ } ,
527
+ ] ,
524
528
startTime : 1 ,
525
529
} ) ;
526
530
} ) ;
0 commit comments