// @flow
import './commands'

// @flow

import './commands'

/* eslint func-names: off */
afterEach(function () { if (this.currentTest.state === 'failed') { Cypress.runner.stop() } })

Stop Cypress if a test failed
Stop Cypress if a test failed

Some tests depend on previous tests (i.e. creating a replica / migration
depends on creating the 2 endpoints), so it is safer to stop all the
tests after the failed one.
