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
When using mochawesome as reporter, codecepts fails when I've errors in my tests. The report is not generated.
npm install && npm test
What do you get instead?
/test/node_modules/mocha/lib/reporters/base.js:227
test.titlePath().forEach(function (str, index) {
^
TypeError: test.titlePath is not a function
at /test/node_modules/mocha/lib/reporters/base.js:227:10
at Array.forEach (<anonymous>)
at Function.exports.list (/test/node_modules/mocha/lib/reporters/base.js:167:12)
at Spec.Base.epilogue (/test/node_modules/mocha/lib/reporters/base.js:344:10)
at emitNone (events.js:110:20)
at Runner.emit (events.js:207:7)
at /test/node_modules/codeceptjs-webdriverio/node_modules/mocha/lib/runner.js:812:12
at done (/test/node_modules/codeceptjs-webdriverio/node_modules/mocha/lib/runner.js:649:7)
at Runner.next [as nextSuite] (/test/node_modules/codeceptjs-webdriverio/node_modules/mocha/lib/runner.js:616:16)
at Runner.uncaught (/test/node_modules/codeceptjs-webdriverio/node_modules/mocha/lib/runner.js:737:17)
It seems to be caused by this change from the 4.0.0 release of Mocha.
Could this be that in this config you have 2 verisons of Mocha installed?
if so that explains everything. We need to update dependency to support latest mocha
What are you trying to achieve?
When using mochawesome as reporter, codecepts fails when I've errors in my tests. The report is not generated.
What do you get instead?
It seems to be caused by this change from the 4.0.0 release of Mocha.
My test file
My package.json
Details
The text was updated successfully, but these errors were encountered: