Skip to content

Commit bb0bf30

Browse files
committed
fixup
1 parent 4e5655f commit bb0bf30

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

scripts/mergeReports.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ async function mergeReports() {
5252
}
5353

5454
fs.writeFileSync(path.join(reportsDir, 'report.xml'), xml)
55+
56+
/**
57+
* Grab the previous test runs exit code. This makes it so that merge and upload
58+
* the reports regardless of the test run exit code and then use the previous test
59+
* exit code to properly inform ci of the test run status
60+
*/
61+
const exitCode = parseInt(process.env.PREVIOUS_TEST_EXIT_CODE || '0', 10)
62+
process.exit(exitCode)
5563
}
5664

5765
mergeReports()
58-
59-
/**
60-
* Grab the previous test runs exit code. This makes it so that merge and upload
61-
* the reports regardless of the test run exit code and then use the previous test
62-
* exit code to properly inform ci of the test run status
63-
*/
64-
const exitCode = parseInt(process.env.PREVIOUS_TEST_EXIT_CODE || '0', 10)
65-
process.exit(exitCode)

0 commit comments

Comments
 (0)