Explorar o código

Merge pull request #206 from smiclea/cypress-stop

Stop Cypress if a test failed
Dorin Paslaru %!s(int64=8) %!d(string=hai) anos
pai
achega
6828c249d5
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      private/cypress/support/index.js

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

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