mocha-parallel-tests
mocha-parallel-tests copied to clipboard
Using global / support --global option
I have read the document about the limitations (https://github.com/yandex/mocha-parallel-tests/wiki/Limitations) and I wanted to know if I use somewhere global.sinon, is it normal that my tests are not working and telling me sinon is not defined.
Is there a way to make it work? I use this so avoid, declaring sinon in each spec file.
Thank for your reply.
Hey @DblK
Well, it depends on how and where you're using it.
Do you have a --global or something like a top-level before script where you declare global.sinon?
If you were following this article to set up your mocha pipeline, be advised that you'll need to import / require the boostrapping file from every root-level test suite you have (instead of simply calling it before the -recursive option)