File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments