Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for status failed
Browse files Browse the repository at this point in the history
mrmeku committed Apr 29, 2024
1 parent eda9d77 commit dd74275
Showing 4 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions cypress/defs.bzl
Original file line number Diff line number Diff line change
@@ -78,8 +78,7 @@ def cypress_module_test(name, runner, cypress = "//:node_modules/cypress", **kwa
cypress.run({
headless: true,
}).then(result => {
// Cypress only reports a status on failures
if (result.status) {
if (result.status === 'failed') {
process.exit(1);
}
})
3 changes: 1 addition & 2 deletions docs/defs.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions docs/rules.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions e2e/workspace/module_test/runner.js
Original file line number Diff line number Diff line change
@@ -12,9 +12,7 @@ async function main() {
return 1;
}

// Cypress only reports a status on failures
if (result.status) {
console.error("Cypress tests failed with status", result.status);
if (result.status === "failed") {
return 2;
}

0 comments on commit dd74275

Please sign in to comment.