You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/backend/__tests__/linkFiber.test.tsx
+14-16Lines changed: 14 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,8 @@ describe('linkFiber', () => {
24
24
lettimeJump;
25
25
letfiberRoot: FiberRoot;
26
26
letdevTools: DevTools;
27
+
letonCommitFiberRootDelayed;
28
+
constDELAY=75;
27
29
constmockPostMessage=jest.fn();
28
30
letdom: JSDOM;
29
31
@@ -55,7 +57,7 @@ describe('linkFiber', () => {
55
57
// Obtain linkFiber function
56
58
linkFiber=linkFiberInitialization(snapshot,mode);
57
59
// Since linkFiber invoke a throttle function that get delay for 70 ms, between each test, linkFiber need to be delayed for 75 ms to ensure no overlapping async calls.
// Since onCommitFiberRoot invoke a throttle function that get delay for 70 ms, between each test, onCommitFiberRoot need to be delayed for 75 ms to ensure no overlapping async calls.
0 commit comments