-
Notifications
You must be signed in to change notification settings - Fork 669
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
npm throws errors when tests fail #1449
Comments
Can you please copy paste the error log here? This doesn't really sound like a VTU problem, but a test runner issue. |
Here it is, hope it's readable:
And the error log's content:
|
I checked this out and it all works fine for me -- all the test pass. It looks like a problem with your set up... maybe try a different version of node? Uninstall/reinstall? 🤔 I'm going to close this since I don't think this is a bug in VTU. I can try and give you some more ideas to debugging it if reinstalling node doesn't work for you. Does this happen to you on other repositories using Vue Test Utils? |
Thank you, @lmiller1990 , for your feedback and checking the problem! It is good to know that it happens to my nodejs setup only. I of course went through the uninstall/re-install procedure before I posted here, but it seems that I missed some spots to clear out completely. Currently, this happens on all repos with tests that I use (well... I only have two...). I will report back, when I have more useable information. Thanks again! |
If it happens on all repos, it's a sign its your environment. Try reinstalling node.js, and we can go from there. |
I faced the same issue. It turns out that this is the expected behaviour of Jest |
Version
1.0.0-beta.31
Reproduction link
https://github.com/rowild/vue-unit-testing
Steps to reproduce
What is expected?
The console should report only the test results (some of which are currently failing).
What is actually happening?
Additionally to the test results npm throws errors.
I read somewhere that this problem also appears with mocha "which always exists with code !==0". It might be that this is also the case with jest:
jestjs/jest#5841
However, I don't know, how to deal with it. Maybe a note about this "phenomenon" could be added to the official docu? Thank you!
The text was updated successfully, but these errors were encountered: