mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
@grafana/e2e: exit with non-0 code on error (#23121)
This commit is contained in:
parent
08133ea31a
commit
9272c0817c
@ -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 = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user