-
Notifications
You must be signed in to change notification settings - Fork 157
Jest 26? #247
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
Comments
Didn't Jest 26 just come out? I wonder if there is any breaking changes we need to be aware of. Also, is there any strong benefit to change the peerDependency version? It's "^25", or "at least 25". That said, it is good to keep dependencies up to date. One thing to note is 4.0.0 is still in "beta" - if you want to make a PR updating the dependencies, I think we can move to a release candidate (not sure if this really has any major implications, I only joined the project recently and can't really see any breaking changes from 3.0.0 to 4.0.0 anyway). |
^25 doesn’t include major version bumps.
Jest 26 came out May 5, two months ago.
… On Jul 2, 2020, at 7:34 AM, Lachlan ***@***.***> wrote:
Didn't Jest 26 just come out?
I wonder if there is any breaking changes we need to be aware of.
Also, is there any strong benefit to change the peerDependency version? It's "^25", or "at least 25". That said, it is good to keep dependencies up to date.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Ok. I think we need a good strategy for versions, and if there are any associated breaking changes. We could continue discussing this here: #246 |
One thing would be to version in conjunction with jest. So vue-jest 25.x is for jest 25.x, 26.x for 26.x, etc. |
I had this idea - I like this. How to specify Vue 2 and Vue 3 though? The codebases are quite different - the compiler is completely separate. |
I've been pinning all my repos to |
How about following enzyme adapter way. For example vue-jest-3 is a package on npm which is different from vue-jest-2. In vue-jest-3 package, you can have: v24, v25, v26 etc which stands for jest compat The downside is more maintenance, but probably automatic CI CD can help. |
I think this is a good idea. Yesterday some code was merged to 4.x but not 5.x - having two effectively different libs in one repo doesn't make sense. I will work on separating the two repos soon. Then we can follow the pattern of matching the Jest version. |
I think monorepo or yarn workspace can help to maintain things like that. You can check how
Then you can configure CI CD or manually publish each independent package. |
Is there a reason we constrain |
If by v24, etc. you mean those would be version tags, that would limit
@lmiller1990 if you're referring to my changes to Sass' importer, I'm sorry about that my intention was not to cause the two branches to diverge. I fully intend to open another PR to cherry-pick those changes to 5.x, but I'd like to explore a different solution first (webpack-contrib/sass-loader#873) and am waiting to hear how that pans out. |
@vvanpo Yep no problem, I don't mind if we diverge a bit - the codebases between Regarind Jest versions, I am in the same position as you - I have noticed no problems with both Jest 25 and 26, but there seems to be a pretty common convention with Jest transformers to pin their versions to Jest. Seems like it's good to follow the convention. That said it might just add more complexity. Ideally we want to support both Vue 2.x and Vue 3.x across each version of Jest. I have no idea what the differences are in Jest 25 and 26, maybe we can just support the latest major version of Jest (it is really difficult to upgrade Jest versions? I don't think so? I've always just added the latest Jest without even thinking about what version I'm adding). Ideally we will separate the Vue 2.x and Vue 3.x specific logic and use the same transformers (eg for sass, coffeescript, whatever) across both integrations. Maybe a monrepo with something like
etc. |
4.x is now in RC and on Jest 26. |
Can we update peer dependencies to use Jest 26? This would also mean moving ts-jest to 26.x.x.
The text was updated successfully, but these errors were encountered: