/
githubmirror
/
react-native
Обзор
Документация
Войти
/
githubmirror
/
react-native
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
private/react-native-fantom/src/__tests__/FantomHighResTimeStampMockOpt-itest.js
22 строки
647 B
Rubén Norte
Implement HighResTimeStamp mocking in Fantom (#53019)
04 авг 2025, 21:21
04 авг 2025, 21:21
f2e72c3
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @fantom_mode opt * @flow strict-local * @format */ import '@react-native/fantom/src/setUpDefaultReactNativeEnvironment'; import * as Fantom from '@react-native/fantom'; describe('Fantom HighResTimeStamp mocks (optimized builds)', () => { it('does not allow mocking the time in optimized builds', () => { expect(() => Fantom.installHighResTimeStampMock()).toThrow( 'Mocking timers is not supported in optimized builds', ); }); });