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 @@ -1077,14 +1077,15 @@ describe(`onRender`, () => {
1077
1077
// base time includes: 2 (ErrorBoundary)
1078
1078
// Since the tree is empty for the initial commit
1079
1079
expect ( mountCall [ 3 ] ) . toBe ( 2 ) ;
1080
- // start time
1080
+ // start time: 5 initially + 14 of work
1081
+ // Add an additional 3 (ThrowsError) if we replayed the failed work
1081
1082
expect ( mountCall [ 4 ] ) . toBe (
1082
1083
__DEV__ && replayFailedUnitOfWorkWithInvokeGuardedCallback
1083
1084
? 22
1084
1085
: 19 ,
1085
1086
) ;
1086
- // commit time: 5 initially + 14 of work
1087
- // Add an additional 3 (ThrowsError) if we replayed the failed work
1087
+ // commit time: 19 initially + 14 of work
1088
+ // Add an additional 6 (ThrowsError *2 ) if we replayed the failed work
1088
1089
expect ( mountCall [ 5 ] ) . toBe (
1089
1090
__DEV__ && replayFailedUnitOfWorkWithInvokeGuardedCallback
1090
1091
? 39
@@ -1103,8 +1104,8 @@ describe(`onRender`, () => {
1103
1104
? 39
1104
1105
: 33 ,
1105
1106
) ;
1106
- // commit time: 19 (startTime) + 2 (ErrorBoundary) + 20 (AdvanceTime)
1107
- // Add an additional 3 (ThrowsError) if we replayed the failed work
1107
+ // commit time: 33 (startTime) + 2 (ErrorBoundary) + 20 (AdvanceTime)
1108
+ // Add an additional 6 (ThrowsError *2 ) if we replayed the failed work
1108
1109
expect ( updateCall [ 5 ] ) . toBe (
1109
1110
__DEV__ && replayFailedUnitOfWorkWithInvokeGuardedCallback
1110
1111
? 61
You can’t perform that action at this time.
0 commit comments