Add tests for @fantom_hermes_variant (#51457)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51457

See title

Changelog: [Internal]

Reviewed By: rubennorte

Differential Revision: D74999954

fbshipit-source-id: bd140b2df71477e2966406ed612a00ff3ea6de8b
This commit is contained in:
Nick Lefever
2025-05-22 08:52:09 -07:00
committed by Facebook GitHub Bot
parent cb02744fa8
commit 7674cd25a7
2 changed files with 36 additions and 0 deletions
@@ -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);
});
});
@@ -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);
});
});