From 996be870713cd72df1f91db99e8f981bbc5406af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Sat, 10 May 2025 01:53:28 -0700 Subject: [PATCH] Add Playground test (#51220) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51220 Changelog: [internal] Just a playground file to do quick tests in the Fantom environment. For example, I just used it to know if Hermes supports `AggregateError`, which does: ``` it('...', () => { console.log('AggregateError', global.AggregateError); }); ``` {F1977824992} Reviewed By: lenaic Differential Revision: D74474870 fbshipit-source-id: cbe8a287738b09afe336ae479cc3105d1474e58b --- .../src/__tests__/Playground-itest.js | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/react-native-fantom/src/__tests__/Playground-itest.js diff --git a/packages/react-native-fantom/src/__tests__/Playground-itest.js b/packages/react-native-fantom/src/__tests__/Playground-itest.js new file mode 100644 index 00000000000..bce20991864 --- /dev/null +++ b/packages/react-native-fantom/src/__tests__/Playground-itest.js @@ -0,0 +1,21 @@ +/** + * 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 + * @oncall react_native + */ + +import '@react-native/fantom/src/setUpDefaultReactNativeEnvironment'; + +// eslint-disable-next-line no-unused-vars +import * as Fantom from '@react-native/fantom'; + +describe('Playground', () => { + it('...', () => { + // Add your tests here, but do NOT commit them. + }); +});