MК
afterEach(function() {Ребята, как правильно передать параметр в
if (this.currentTest.state === 'failed') {
console.log(this.currentTest.hello); // выводит undefined
}
})
describe('test', () => {
it('Should lalala', () =>
chakram.get('http://some-url').then((result) => {
this.hello = 'blabla'
return expect(result).to.have.something;
}
));
});
afterEach
?