mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
320398afe5
Summary: Fixed tests related to changing Jest's fake timer behavior. And some of the test code in LogBoxData-test.js itself was incorrect so I am fixing it. LogBoxData-test.js fails when I try to build a new local development environment and fork the React Native source to run a JavaScript test. The error message is: runAllImmediates is not available when using modern timers After checking, runAllImmediates could not be used with the following modification. https://github.com/facebook/jest/commit/71631f6bf9ccf8937f02a5ecfb64b62712b86c19 ## Changelog [Internal] [Fixed] - Test fixes related to changes in Jest's Fake Timer behavior Pull Request resolved: https://github.com/facebook/react-native/pull/29011 Test Plan: Ran JavaScript Tests locally. Reviewed By: cpojer Differential Revision: D22494991 Pulled By: rickhanlonii fbshipit-source-id: 4deeaf82b5092ff8b60c4606eb45549beb452a5f