react-native-macos/flow
Rob Hogan 09a910f80b Prepare for Jest 27+ by making legacy fake timer use explicit
Summary:
Jest 27 [flips defaults](https://jestjs.io/blog/2021/05/25/jest-27#flipping-defaults), making "modern" fake timers (ie, `sinonjs/fake-timers`) the default, over "legacy", which we currently use.

We're not quite ready for modern timers yet, partly due to Promise polyfills (https://github.com/facebook/react-native/pull/34659), and also some internal issues with specific tests.

This makes our use of legacy timers explicit in preparation for an update to Jest. A switch to modern timers may follow later.

Changelog:
[Internal][Changed] - Prepare for Jest 27+ by making legacy fake timer use explicit

Reviewed By: jacdebug

Differential Revision: D39383719

fbshipit-source-id: 6a3dc6f8547cc76f7702a5a39c9b30a184303f17
2022-09-12 04:59:18 -07:00
..
HermesInternalType.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
JSITimerInternalType.js Migrates off getInstrumentedStats' deprecated fields 2022-07-06 20:00:15 -07:00
Position.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
Stringish.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
console.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
global.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
jest.js Prepare for Jest 27+ by making legacy fake timer use explicit 2022-09-12 04:59:18 -07:00
use-sync-external-store.js Replace use-subscripton with use-sync-external-store (#33770) 2022-05-05 19:58:19 -07:00