I am using Cypress + Cucumber. Trying to fail test and skip steps if one of the failed. For this, I'm using the following code:
afterEach(function () {
if (this.currentTest.state === 'failed') {
Cypress.runner.stop()
}
});
But if I use this and test failed I don't receive any reports in cucumber-json folder. Maybe someone has a solution for this?