Skip to content

Commit

Permalink
Fix VirtualizedList-test.js
Browse files Browse the repository at this point in the history
Summary:
Fixes `VirtualizedList-test.js`, which assumes fake timers (e.g. using `jest.runAllTimers()` and `jest.runOnlyPendingTimers()`) but did not actually use fake timers.

Changelog:
[Internal]

Differential Revision: D54668281
  • Loading branch information
rickhanlonii authored and facebook-github-bot committed Mar 8, 2024
1 parent 2d547a3 commit 202ed09
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import VirtualizedList from '../VirtualizedList';
import React from 'react';
import ReactTestRenderer from 'react-test-renderer';

jest.useFakeTimers();

describe('VirtualizedList', () => {
it('renders simple list', () => {
const component = ReactTestRenderer.create(
Expand Down

0 comments on commit 202ed09

Please sign in to comment.