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

chore: update to jest 27 #811

Merged
merged 2 commits into from Feb 16, 2022
Merged

chore: update to jest 27 #811

merged 2 commits into from Feb 16, 2022

Conversation

cexbrayat
Copy link
Member

@cexbrayat cexbrayat commented Jul 30, 2021

Updates jest, ts-jest and babel-jest to v27.
vue-jest v5 does not support jest v27,
so a new vue3-jest package has been introduced (see vuejs/vue-jest#343),
with a version number aligned on the jest version (as ts-jest and babel-jest do).

This commits replaces vue-jest by vue3-jest, and updates the jest config to use this new trasnformer.
This will be the default Vue CLI setup in the future.

@cexbrayat
Copy link
Member Author

This is currently blocked by vuejs/core#4216 in vue-next, as this update surfaced an issue when spying on proxy (it in fact occurs with jest v26.6.1, but we were using an older version than that)

@cexbrayat cexbrayat force-pushed the chore/jest-27 branch 2 times, most recently from c900b06 to c9b82b1 Compare August 30, 2021 08:59
@cexbrayat
Copy link
Member Author

cexbrayat commented Aug 30, 2021

jestjs/jest#11721 landed, unblocking part of the issue with proxy spying.
Jest v27.1 has been released with the fix, and this PR now uses it, allowing us to remove the dirty workaround we had to add hasOwnProperty in the future (see the second commit).

We are still waiting on vuejs/core#4216 to completely unblock this PR.

@netlify
Copy link

netlify bot commented Feb 11, 2022

✔️ Deploy Preview for vue-test-utils-docs ready!

🔨 Explore the source changes: 88a5ced

🔍 Inspect the deploy log: https://app.netlify.com/sites/vue-test-utils-docs/deploys/6208d7bfc9d4da000781665b

😎 Browse the preview: https://deploy-preview-811--vue-test-utils-docs.netlify.app

cexbrayat and others added 2 commits February 13, 2022 11:04
Updates jest, ts-jest and babel-jest to v27.
vue-jest v5 does not support jest v27,
so a new vue3-jest package has been introduced (see vuejs/vue-jest#343),
with a version number aligned on the jest version (as ts-jest and babel-jest do).

This commits replaces vue-jest by vue3-jest, and updates the jest config to use this new trasnformer.
This will be the default Vue CLI setup in the future.
@cexbrayat
Copy link
Member Author

The proxy issue in core has been fixed and released in v3.2.31, so this PR can now be merged after review

@lmiller1990 lmiller1990 marked this pull request as ready for review February 16, 2022 02:15
@lmiller1990 lmiller1990 merged commit 4e917d9 into vuejs:main Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants