-
Notifications
You must be signed in to change notification settings - Fork 156
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
Getting "don't know how to turn this value into a node" using @vue/vue2-jest@^27.0.0-alpha.4 and jest@^27.1.0 #450
Comments
It works if you use the options |
thebanjomatic
pushed a commit
to thebanjomatic/babel
that referenced
this issue
Feb 17, 2022
When the sourcemaps were switched to use "@ampproject/remapping", the type of the inputSourceMap that gets passed around changed from being a plain js object to a `class SourceMap` fromthe remapping package. This causes issues with the @babel/types valueToNode function because that function is defined to throw for objects that aren't plain-objects. In practice I was seeing this error after upgrading babel when running code- coverage, and I saw a similar error reported here: vuejs/vue-jest#450 before deciding to try to track the error down myself.
thebanjomatic
pushed a commit
to thebanjomatic/babel
that referenced
this issue
Feb 17, 2022
When the sourcemaps were switched to use "@ampproject/remapping", the type of the inputSourceMap that gets passed around changed from being a plain js object to a `class SourceMap` fromthe remapping package. This causes issues with the @babel/types valueToNode function because that function is defined to throw for objects that aren't plain-objects. In practice I was seeing this error after upgrading babel when running code- coverage, and I saw a similar error reported here: vuejs/vue-jest#450 before deciding to try to track the error down myself.
thebanjomatic
pushed a commit
to thebanjomatic/babel
that referenced
this issue
Feb 17, 2022
When the sourcemaps were switched to use "@ampproject/remapping", the type of the inputSourceMap that gets passed around changed from being a plain js object to a `class SourceMap` fromthe remapping package. This causes issues with the @babel/types valueToNode function because that function is defined to throw for objects that aren't plain-objects. In practice I was seeing this error after upgrading babel when running code- coverage, and I saw a similar error reported here: vuejs/vue-jest#450 before deciding to try to track the error down myself.
thebanjomatic
pushed a commit
to thebanjomatic/babel
that referenced
this issue
Feb 17, 2022
When the sourcemaps were switched to use "@ampproject/remapping", the type of the inputSourceMap that gets passed around changed from being a plain js object to a `class SourceMap` fromthe remapping package. This causes issues with the @babel/types valueToNode function because that function is defined to throw for objects that aren't plain-objects. In practice I was seeing this error after upgrading babel when running code- coverage, and I saw a similar error reported here: vuejs/vue-jest#450 before deciding to try to track the error down myself.
Can I close this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi everyone,
I am getting an error when trying to execute my unit tests using
@vue/vue2-jest@^27.0.0-alpha.4
andjest@^27.1.0
. As far as I know this should be solved with this PR, but upgrading from older version of jest to a new one usingvue upgrade --next
breaks it.This is the error:
Here's my
jest.config.js
:Am I missing something or is the bug still not solved?
Thanks a lot
The text was updated successfully, but these errors were encountered: