Skip to content

Commit 7674cd2

Browse files
Nick Lefeverfacebook-github-bot
authored andcommitted
Add tests for @fantom_hermes_variant (#51457)
Summary: Pull Request resolved: #51457 See title Changelog: [Internal] Reviewed By: rubennorte Differential Revision: D74999954 fbshipit-source-id: bd140b2df71477e2966406ed612a00ff3ea6de8b
1 parent cb02744 commit 7674cd2

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow strict-local
8+
* @format
9+
* @fantom_hermes_variant static_hermes
10+
*/
11+
12+
declare var HermesInternal: $HermesInternalType;
13+
14+
describe('"@fantom_hermes_variant static_hermes" in docblock', () => {
15+
it('should use Static Hermes', () => {
16+
expect(HermesInternal.getRuntimeProperties?.()['Static Hermes']).toBe(true);
17+
});
18+
});
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow strict-local
8+
* @format
9+
* @fantom_hermes_variant static_hermes_experimental
10+
*/
11+
12+
declare var HermesInternal: $HermesInternalType;
13+
14+
describe('"@fantom_hermes_variant static_hermes" in docblock', () => {
15+
it('should use Static Hermes', () => {
16+
expect(HermesInternal.getRuntimeProperties?.()['Static Hermes']).toBe(true);
17+
});
18+
});

0 commit comments

Comments
 (0)