Created
November 14, 2018 10:42
-
-
Save rafael-anachoreta/79b2bcf1ea66416676eaf3e9c73a5043 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//__bug.spec.js | |
describe('Bug', ()=>{ | |
before(() =>{ | |
cy.task('message', 'I\'m running!'); | |
}); | |
it('Should only log once', () => { | |
cy.visit('https://www.google.com'); | |
}); | |
}); | |
//index.js | |
module.exports = (on) => { | |
on('task', { | |
message (args) { | |
console.log(args); | |
return null; | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment