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