Cypress support
guy333 opened this issue · 4 comments
guy333 commented
Can this be used in cypress, Where there is no access to new Mocha()
?
stalniy commented
I think yes. What you need to find is how to change mocha ui in cypress
stalniy commented
This is the blocker I guess: cypress-io/cypress#1263
stalniy commented
Nothing I can do to help. You need to make a PR to cypress or ask them to implement that feature
atryshkin commented
Hi
I tried to connect.
You have access to Mocha in bdd-lazy-var/index.js via global.Mocha or global.Cypress.mocha._mocha.Mocha.
I have added an interface but the tests are not running
node_modules/bdd-lazy-var/index.js
var _mocha = global.Cypress ? global.Mocha : mocha__default['default']
cypress/support/index.ts
mocha.ui('bdd-lazy-var');