Commit 9272c081 by Steven Vachon Committed by GitHub

@grafana/e2e: exit with non-0 code on error (#23121)

parent 08133ea3
......@@ -16,7 +16,10 @@ const cypress = commandName => {
return execa(`${projectPath}/node_modules/.bin/cypress`, cypressOptions, execaOptions)
.then(() => {}) // no return value
.catch(error => console.error(error.message));
.catch(error => {
console.error(error.message);
process.exitCode = 1;
});
};
module.exports = () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment