Skip to content
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

vue-jest@4.0.1 config undefined TypeError #362

Closed
pazderka opened this issue Jun 16, 2021 · 2 comments
Closed

vue-jest@4.0.1 config undefined TypeError #362

pazderka opened this issue Jun 16, 2021 · 2 comments

Comments

@pazderka
Copy link

I have came across the versions 4.0.0 and 4.0.1 of vue-jest. I assume it should be possible to use these versions as usual, as they seem to be marked as stable versions.

In vue-jest@4.0.1 (and probably in 4.0.0 as well) there is an issue with running tests. Tests fail with TypeError: Cannot destructure property 'config' of 'undefined' as it is undefined. when you try to import a vue component into a test file.

Reproduction is here: https://github.com/pazderka/vue-jest-error-repro
just run npm install and npm run test and the error will occur.

The same repo is working when you install vue-jest@3.0.7

@nogic1008
Copy link
Collaborator

@pazderka
vue-jest@4 does not support jest@27.x yet, also not vue-jest@3.x and vue-jest@5.x.
Please downgrade jest to 26.x as workaround, or wait #355 and #343.

@nogic1008 nogic1008 added this to the 27.x milestone Jun 16, 2021
@nogic1008
Copy link
Collaborator

Close this issue because duplicates with #267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants