-
Notifications
You must be signed in to change notification settings - Fork 13
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
"mocha-trx-reporter" throwing error as "TypeError: Cannot read property 'start' of undefined"" #18
Comments
Hi @gadepallavi your error points to a missing "stats" property but I can't find the root cause for that. Could you describe your setup? |
Hello, please find the requested infomration below: Versions: Describe the steps:
Please let me know if you need any details. Regards, |
Thanks for the info. I think that the problem is a mismatch between the Now I changed mocha dependency to be a peer-dependency, which I think it's the correct approach. With this change the reporter will work with your mocha version instead of bundling its own. It's not yet published to npm, you can try the fix by installing it from github:
Please let me know if this works for you. |
Hello, I tried the fix using the commands given and it is working for me. Thank you. Please let me know when it is available on NPM and I will make the necessary changes on my end. Regards, |
The fixed version has been published to npm, you can now install it as standard dep: |
I am trying to use "mocha-trx-reporter" to generate the ".trx" file for my E2E tests. I installed the "mocha-trx-reporter" latest version which is "^3.2.3". After installing when I tried to run the tests it is showing error as "TypeError: Cannot read property 'start' of undefined" in file "\node_modules\mocha-trx-reporter\lib\trx.js" line 83
The text was updated successfully, but these errors were encountered: