Closed SveinungTorresdal closed 4 years ago
Is that package.json correct? You seem to be using "vue": "^2.6.11"
?
vue-jest
5.0 is for Vue 3vue-jest
4.0 is for Vue 2Very weird it is working locally and not on CI. Caching issue?
Yes, we're still on Vue 2. The release notes indicated support for Vue 3 was added, not that Vue 2 was out entirely, but I might've misunderstood then.
Can you link me said release notes? I might have made a mistake - I can update them if needed. This repo's release notes are confusing, because we simultaneously support Vue 2 and Vue 3 in two different branches. I think I should make a new repo for Vue 3 support, maybe.
In any case:
master
is 4.x which is Vue 2
next
is 5.x which is Vue 3
So if you are using Vue 2 you need 4.x.
Any luck? I think this is a version mismatch.
We downgraded vue-jest
before submitting the issue. For some reason it prompted us to install is-obj
even though we hadn't required it previously, but it worked again. 🤷♂️
As for the release note, dependabot was reporting the following:
Bumps vue-jest from 4.0.0-beta.5 to 5.0.0-alpha.1.
Release notes Sourced from vue-jest's releases.
v5.0.0-alpha.1
Features
Support for Vue 3! Some features are not supported yet, like JSX (that is still a WIP, even for Vue 3). You can try Vue 3 + Jest using this repository.
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
I understood Vue 3 support to mean alongside the existing support for Vue 2. If I've misunderstood that's my bad. :)
Yep they are different codebases - we can't support them side by side.
I am not sure that dependabot recommendation is ideal. That said I don't know we can do anything on our end to stop it from prompting an incompatible version.
I upgraded to the latest
vue-jest
@5.0.0-alpha.2
, and my tests were running fine locally. However, teamcity reported the following.I'm unfortunately not in a position to share much more from our repo and stuff, but here's our package.json with some pruning.