You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After spending quite some time trying to figure out why mocha-clean had no effect on my stack trace I had a deeper look into it and found that the reason was I installed mocha globally via npm install -g mocha, but mocha-clean monkey-patches mocha's Runner.prototype.fail function of the locally installed mocha package.
So in order to shorten the stack traces I need to run node_modules/mocha/bin/mocha? Or did I miss anything here?
Cheers,
Hannes
The text was updated successfully, but these errors were encountered:
We tried this as well. This package has to be installed in the same level as your suite.
For example
root\
root\package.json <---- mocha installed at this level
uitest\
uitest\test\
uitest\test\mocha.opts <---- --require mocha-clean here
uitest\package.json <---- mocha-clean has to be installed at this level
apitest\
apitest\test\
apitest\test\mocha.opts <---- --require mocha-clean here
apitest\package.json <---- mocha-clean has to be installed at this level
Hi,
first of all thanks for that nice little tool.
After spending quite some time trying to figure out why mocha-clean had no effect on my stack trace I had a deeper look into it and found that the reason was I installed mocha globally via
npm install -g mocha
, but mocha-clean monkey-patches mocha's Runner.prototype.fail function of the locally installed mocha package.So in order to shorten the stack traces I need to run
node_modules/mocha/bin/mocha
? Or did I miss anything here?Cheers,
Hannes
The text was updated successfully, but these errors were encountered: