mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
cb02744fa8
commit
7674cd25a7
+18
@@ -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);
|
||||
});
|
||||
});
|
||||
Vendored
+18
@@ -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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user