Hook up RN integration tests in Jest pipeline at Meta (#47613)

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

Changelog: [internal]

Reviewed By: sammy-SC

Differential Revision: D65661703

fbshipit-source-id: 269444f8f7124082f06ffcf89cec40992a107d67
This commit is contained in:
Rubén Norte 2024-11-15 03:00:17 -08:00 committed by Facebook GitHub Bot
parent 07b34f4ca3
commit d417788b24

View File

@ -127,6 +127,10 @@ module.exports = async function runTest(
];
const rnTesterCommandResult = spawnSync('buck2', rnTesterCommandArgs, {
encoding: 'utf8',
env: {
...process.env,
PATH: `/usr/local/bin:${process.env.PATH ?? ''}`,
},
});
if (rnTesterCommandResult.status !== 0) {
@ -138,6 +142,8 @@ module.exports = async function runTest(
rnTesterCommandResult.stdout,
'stderr:',
rnTesterCommandResult.stderr,
'error:',
rnTesterCommandResult.error,
].join('\n'),
);
}
@ -156,7 +162,9 @@ module.exports = async function runTest(
const endTime = Date.now();
console.log(rnTesterParsedOutput.logs);
if (process.env.SANDCASTLE == null) {
console.log(rnTesterParsedOutput.logs);
}
const testResults =
nullthrows(rnTesterParsedOutput.testResult.testResults).map(testResult => ({