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`, () => {
10771077 // base time includes: 2 (ErrorBoundary)
10781078 // Since the tree is empty for the initial commit
10791079 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
10811082 expect ( mountCall [ 4 ] ) . toBe (
10821083 __DEV__ && replayFailedUnitOfWorkWithInvokeGuardedCallback
10831084 ? 22
10841085 : 19 ,
10851086 ) ;
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
10881089 expect ( mountCall [ 5 ] ) . toBe (
10891090 __DEV__ && replayFailedUnitOfWorkWithInvokeGuardedCallback
10901091 ? 39
@@ -1103,8 +1104,8 @@ describe(`onRender`, () => {
11031104 ? 39
11041105 : 33 ,
11051106 ) ;
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
11081109 expect ( updateCall [ 5 ] ) . toBe (
11091110 __DEV__ && replayFailedUnitOfWorkWithInvokeGuardedCallback
11101111 ? 61
You can’t perform that action at this time.
0 commit comments