-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
error: "don't know how to turn this value into a node" when using code coverage #10089
Comments
Looks like it's the same issue as babel/babel#11439 or this one: storybookjs/storybook#10477 Did you check it before? |
Thanks for taking a look. Yes, I did check before and I couldn't find any other similar issues. To be honest, I'm not sure how the two issues you linked are the same as this one? I do have another issue open in babeljs. I was going to close that one by they said to keep it open: babel/babel#11614 FWIW, I've tried deleting node_modules, the yarn.lock and upgrading every package to the latest versions. Same issue when code code coverage is enabled. This is my full
Looks to me that when coverage is enabled that it's trying to apply JS transformations to the Vue files. Let me know if you think this should be an issue in vue-test-utils instead. |
Posted this 2 issues because have the same error and together with it there was also a message about missing mentioned module - I guess it can be a problem related to |
@kjugi I'm confused. It looks to me like the error in the two issues you posted is I must be being dense - can you explain where the simularity is? |
I'm saying that in my case this error which you reported That's why I posted them there due to possible relation. As you may saw in issues there are some problems when using babel older versions with node v13/v14 that's why you need to upgrade There are a few possible ways to fix this problem but it highly depends on your setup:
If no one of this possible solution helps probably need to wait for someone else response i.e. jest contributors cause they are more familiar with jest code itself. Maybe in this case change in jest will be required. |
@kjugi I actually started with Node 12 and tried upgrading to 14 to see if it would fix. I've just downgraded to v12, deleted yarn.lock and node_modules and reinstalled all the modules. Unfortunately I still have the same issue. |
Same error occurs when update |
node 12 and babel/preset-env at 7.10.3 ( latest babel ) still produce this error with vue and coverage
none of solutions in this thread worked |
@aldarund I'm using Nuxt.js and got same problem. I find out this problems solution is downgrade |
I got it!
Fixed in vuejs/vue-jest#255 |
@samstickland |
@nogic1008 Yup, works for me! Thanks! |
@nogic1008 what version of jest are you on? With [email protected] and [email protected] I still get |
@jaythomas |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
After upgrading babel I get the following errors on some of test suite when code coverage is enabled:
To Reproduce
Enable code coverage in
jest.config.json
and run the test suite viayarn test
Expected behavior
Test suite runs correctly and code coverage is collected.
Link to repl or repo (highly encouraged)
This is a private repo. If there isn't enough information in the stack trace I can try and make a cutdown version I can make public
envinfo
The text was updated successfully, but these errors were encountered: