Skip to content

Commit e99be2e

Browse files
andrewdacenkofacebook-github-bot
authored andcommitted
skip bytecode support for hermes (facebook#52767)
Summary: Changelog: [Internal] Currently tests that depend on hermes dev bytecode will fail because in OSS this case was not handled. We need to skip them for now before we integrate hermes compiler properly. Reviewed By: christophpurrer Differential Revision: D78750791
1 parent fb45877 commit e99be2e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

private/react-native-fantom/runner/runner.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,27 @@ module.exports = async function runTest(
264264
continue;
265265
}
266266

267+
if (
268+
EnvironmentOptions.isOSS &&
269+
testConfig.mode !== FantomTestConfigMode.DevelopmentWithSource
270+
) {
271+
testResultsByConfig.push([
272+
{
273+
ancestorTitles: ['"@fantom_mode dev-bytecode" in docblock'],
274+
duration: 0,
275+
failureDetails: [] as Array<Error>,
276+
failureMessages: [] as Array<string>,
277+
fullName: 'Hermes bytecode is not yet supoprted in OSS',
278+
numPassingAsserts: 0,
279+
snapshotResults: {} as TestSnapshotResults,
280+
status: 'pending' as 'passed' | 'failed' | 'pending',
281+
testFilePath: testPath,
282+
title: 'Hermes bytecode is not yet supoprted in OSS',
283+
},
284+
]);
285+
continue;
286+
}
287+
267288
const entrypointContents = entrypointTemplate({
268289
testPath: `${path.relative(BUILD_OUTPUT_PATH, testPath)}`,
269290
setupModulePath: `${path.relative(BUILD_OUTPUT_PATH, setupModulePath)}`,

0 commit comments

Comments
 (0)