Skip to content

Commit

Permalink
Fix VirtualizedList-test.js (#43377)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #43377

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]

Reviewed By: yungsters

Differential Revision: D54668281

fbshipit-source-id: b14757744bb7a21a4e5573053549c36178826021
  • Loading branch information
rickhanlonii authored and facebook-github-bot committed Mar 8, 2024
1 parent ed32b4b commit 5126bac
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 5126bac

Please sign in to comment.