/
githubmirror
/
react-native
Обзор
Документация
Войти
/
githubmirror
/
react-native
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
private/react-native-fantom/src/__tests__/FantomModuleInit-itest.js
21 строка
550 B
Tim Yung
RN: Move `{packages => private}/react-native-fantom` (#51938)
12 июн 2025, 09:49
12 июн 2025, 09:49
d6f29c8
Код
Авторство
О чём код?
/** * 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. * * @flow strict-local * @format */ describe('FantomModuleInit', () => { it('should not load the Fantom module eagerly', () => { expect(global.__FANTOM_PACKAGE_LOADED__).toBeUndefined(); }); it('should load the Fantom module lazily', () => { require('@react-native/fantom'); expect(global.__FANTOM_PACKAGE_LOADED__).toBe(true); }); });