Skip to content

Commit

Permalink
Close cypress after it finished testing with proper status
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsnik committed May 13, 2018
1 parent a96ba1f commit 52e3c3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/run-cypress-tests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
const cypress = require('cypress');
const server = require('./start-server');

cypress.run().then(() => server.close());
cypress.run().then(({ failures }) => {
server.close();
process.exit(failures === 0 ? 0 : 1);
});

0 comments on commit 52e3c3f

Please sign in to comment.