Skip to content

Commit 9d89d5b

Browse files
committed
fixup
1 parent b7e94e0 commit 9d89d5b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/mergeReports.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,12 @@ async function mergeReports() {
5454
fs.writeFileSync(path.join(reportsDir, 'report.xml'), xml)
5555

5656
/**
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
57+
* Retrieves the exit code from the previous test run execution.
58+
*
59+
* This allows us to:
60+
* 1. Merge and upload test reports regardless of the test execution status
61+
* 2. Preserve the original test run exit code
62+
* 3. Report the test status back to CI
6063
*/
6164
const exitCode = parseInt(process.env.PREVIOUS_TEST_EXIT_CODE || '0', 10)
6265
process.exit(exitCode)

0 commit comments

Comments
 (0)