Open sceee opened 2 years ago
Support Jest 18 with @vue/cli-plugin-unit-jest
I think you mean jest 28 instead of 18 😉
And @vue/vue3-jest is now at 28.0.0 too.
It'd be nice if you add support for jest v28. Waiting for it :)
This is breaking my build, any suggestions (tried deleting package-lock & node_modules) or I have to just wait for the upgrade?
npm install
...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: frontend@0.1.0
npm ERR! Found: ts-jest@28.0.4
npm ERR! node_modules/ts-jest
npm ERR! dev ts-jest@"28.0.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional ts-jest@"^27.0.4" from @vue/cli-plugin-unit-jest@5.0.7
npm ERR! node_modules/@vue/cli-plugin-unit-jest
npm ERR! dev @vue/cli-plugin-unit-jest@"^5.0.6" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
@trent-abc You need to use ts-jest 27.
npm install -D ts-jest@27
Yes but the way this is made currently feels like a pain, 1 package that updates, then one vue package that follows up, then the vue-cli-plugin package that needs to follow up. A big chain of update..
Either version range should be more lax in the vue-cli-plugin or there should be autoupgrades with renovate, otherwise updates takes months before they make it to the vue-cli plugin
It's the same issue with eslint
any good news?
This is holding up our upgrades to Jest 28.
vue-jest added support for the Githubissues.
What problem does this feature solve?
Since Jest 18 was released ( https://jestjs.io/blog/2022/04/25/jest-28 ), it would be preferable if
@vue/cli-plugin-unit-jest
also supports it.There is also already a version 28 for
ts-jest
available that is compatible with Jest 28.What does the proposed API look like?
n/a