Browse Source

Merge pull request #206 from smiclea/cypress-stop

Stop Cypress if a test failed
Dorin Paslaru 8 years ago
parent
commit
6828c249d5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      private/cypress/support/index.js

+ 4 - 0
private/cypress/support/index.js

@@ -1,2 +1,6 @@
 // @flow
 // @flow
+
 import './commands'
 import './commands'
+
+/* eslint func-names: off */
+afterEach(function () { if (this.currentTest.state === 'failed') { Cypress.runner.stop() } })