Skip to content

Commit

Permalink
Hook up RN integration tests in Jest pipeline at Meta (facebook#47613)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#47613

Changelog: [internal]

Reviewed By: sammy-SC

Differential Revision: D65661703
  • Loading branch information
rubennorte authored and facebook-github-bot committed Nov 14, 2024
1 parent ac4c3dd commit 8f69e35
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion jest/integration/runner/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -138,6 +142,8 @@ module.exports = async function runTest(
rnTesterCommandResult.stdout,
'stderr:',
rnTesterCommandResult.stderr,
'error:',
rnTesterCommandResult.error,
].join('\n'),
);
}
Expand All @@ -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 => ({
Expand Down

0 comments on commit 8f69e35

Please sign in to comment.