Skip to content

refactor!: support wider range of jest versions by making babel-jest & ts-jest peer dependencies #262

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

Merged
merged 2 commits into from
Aug 1, 2020

Conversation

haoqunjiang
Copy link
Member

It is mainly because ts-jest has a hard-coded jest version requirement.

And ts-jest is listed as optional because not every project needs it.

…& ts-jest peer dependencies

It is mainly because ts-jest has a hard-coded jest version requirement.

And ts-jest is listed as optional, because not every project needs it.
@lmiller1990 lmiller1990 merged commit 198b3cc into vuejs:next Aug 1, 2020
@haoqunjiang
Copy link
Member Author

@lmiller1990 Could this PR be backported to v4? Because ts-jest has a hard peer dependency on typescript, therefore may cause trouble for non-TS users.

@lmiller1990
Copy link
Member

lmiller1990 commented Sep 14, 2020

Sure, I can do it this week.

PS: can we bump vue-cli to use v4 by default? v3 is not really worked on anymore, I think it's still the default, though.

@lmiller1990
Copy link
Member

I will track in here: #281

@haoqunjiang
Copy link
Member Author

Yeah, I plan to bump it in the next branch.

@lmiller1990
Copy link
Member

lmiller1990 commented Sep 15, 2020

Just to confirm - I was talking about making the default for Vue 2 be 4.x. Vue 3 will use 5.x

vue-jest 3.x and 4.x are Vue 2
vue-jest 5.x (aka next) is Vue 3

We don't support <script setup> yet - but I have a POC that will hopefully be a PR soon.

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.

2 participants