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

This commit is contained in:
Steven Vachon 2020-03-27 08:59:43 -04:00 committed by GitHub
parent 08133ea31a
commit 9272c0817c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = () => {