Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1526,8 +1526,7 @@ it('adjusts render area with non-zero initialScrollIndex', async () => {
simulateScroll(component, {x: 0, y: 10}); // simulate scroll offset for initialScrollIndex

// TODO: Rewrite test to tolerate subtle timing changes.
performNextBatch();
performNextBatch();
jest.advanceTimersToNextTimer(3);
});

// We should expand the render area after receiving a message indcating we
Expand Down Expand Up @@ -2542,5 +2541,5 @@ function performAllBatches() {
}

function performNextBatch() {
jest.runOnlyPendingTimers();
jest.advanceTimersToNextTimer(1);
}