File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
packages/react/src/__tests__ Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1080,14 +1080,15 @@ describe(`onRender`, () => {
1080
1080
// base time includes: 2 (ErrorBoundary)
1081
1081
// Since the tree is empty for the initial commit
1082
1082
expect ( mountCall [ 3 ] ) . toBe ( 2 ) ;
1083
- // start time
1083
+ // start time: 5 initially + 14 of work
1084
+ // Add an additional 3 (ThrowsError) if we replayed the failed work
1084
1085
expect ( mountCall [ 4 ] ) . toBe (
1085
1086
__DEV__ && replayFailedUnitOfWorkWithInvokeGuardedCallback
1086
1087
? 22
1087
1088
: 19 ,
1088
1089
) ;
1089
- // commit time: 5 initially + 14 of work
1090
- // Add an additional 3 (ThrowsError) if we replayed the failed work
1090
+ // commit time: 19 initially + 14 of work
1091
+ // Add an additional 6 (ThrowsError *2 ) if we replayed the failed work
1091
1092
expect ( mountCall [ 5 ] ) . toBe (
1092
1093
__DEV__ && replayFailedUnitOfWorkWithInvokeGuardedCallback
1093
1094
? 39
@@ -1106,8 +1107,8 @@ describe(`onRender`, () => {
1106
1107
? 39
1107
1108
: 33 ,
1108
1109
) ;
1109
- // commit time: 19 (startTime) + 2 (ErrorBoundary) + 20 (AdvanceTime)
1110
- // Add an additional 3 (ThrowsError) if we replayed the failed work
1110
+ // commit time: 33 (startTime) + 2 (ErrorBoundary) + 20 (AdvanceTime)
1111
+ // Add an additional 6 (ThrowsError *2 ) if we replayed the failed work
1111
1112
expect ( updateCall [ 5 ] ) . toBe (
1112
1113
__DEV__ && replayFailedUnitOfWorkWithInvokeGuardedCallback
1113
1114
? 61
You can’t perform that action at this time.
0 commit comments