diff --git a/packages/react-native-fantom/src/__tests__/FantomHermesVariantStaticHermes-itest.js b/packages/react-native-fantom/src/__tests__/FantomHermesVariantStaticHermes-itest.js new file mode 100644 index 00000000000..2f4f555b903 --- /dev/null +++ b/packages/react-native-fantom/src/__tests__/FantomHermesVariantStaticHermes-itest.js @@ -0,0 +1,18 @@ +/** + * 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 + * @fantom_hermes_variant static_hermes + */ + +declare var HermesInternal: $HermesInternalType; + +describe('"@fantom_hermes_variant static_hermes" in docblock', () => { + it('should use Static Hermes', () => { + expect(HermesInternal.getRuntimeProperties?.()['Static Hermes']).toBe(true); + }); +}); diff --git a/packages/react-native-fantom/src/__tests__/FantomHermesVariantStaticHermesExperimental-itest.js b/packages/react-native-fantom/src/__tests__/FantomHermesVariantStaticHermesExperimental-itest.js new file mode 100644 index 00000000000..3cd2bbc7207 --- /dev/null +++ b/packages/react-native-fantom/src/__tests__/FantomHermesVariantStaticHermesExperimental-itest.js @@ -0,0 +1,18 @@ +/** + * 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 + * @fantom_hermes_variant static_hermes_experimental + */ + +declare var HermesInternal: $HermesInternalType; + +describe('"@fantom_hermes_variant static_hermes" in docblock', () => { + it('should use Static Hermes', () => { + expect(HermesInternal.getRuntimeProperties?.()['Static Hermes']).toBe(true); + }); +});