New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'duration' of undefined #49
Comments
This is because mocha 6 was released: |
Hey dear contributors, on our side we also needed to remove the reporter because of this issue. Is there a way to refer to a version of mocha that is lower than 6.0 so we can keep using the reporter? :) Thanks |
Hey all, i will have a look into this but i suspect it might be mochajs/mocha#2819 @jhdevuk Could you please get me a simplified version of your test that breaks? so i can add it to my own test suite so i know what i am doing will solve your issue as i don't have any existing tests that do break like that with mocha 6. @njumbo you should be able to lock your package.json/package-lock.json to mocha@5 like so
or do a npm install like
|
Locking |
@shahata ah thanks good point! my only concern would be it could be a breaking change for someone who is relying on the reporter to install mocha for them. I think ill do a major version bump |
@jamie-sherriff maybe |
@roymiloh was thinking that but i already have a workaround for mocha 6 i was thinking of doing the following then:
if anyone has any other suggestions please let me know as ill start doing that now. |
Restrict the mocha dependency version to less than 6 and publish that as a patch version has been released as 2.5.2 |
Thanks, looks good. |
Mocha version 6 support is published under the tag next |
Thanks @jamie-sherriff, we don't have a package-lock right now, this change will help us in the meantime. we will try it out today. |
@jamie-sherriff Amazing, thanks |
Fixed in 3.0.0 release |
I've just noticed the following error being thrown when running our client side tests in TeamCity:
Nothing's changed with the setup or package versions.
Any idea why the
stats
object would be undefined and what might be causing this?We're using version
2.4.0
.Many thanks
The text was updated successfully, but these errors were encountered: