vuejs / vue-jest

Jest Vue transformer
MIT License
746 stars 157 forks source link

Difference between @vue/vue3-jest and vue3-jest #397

Closed 0x0dr1y closed 2 years ago

0x0dr1y commented 2 years ago

Hey!

I wonder what the exact difference is between the two packages vue3-jest and @vue/vue3-jest? I'd guess that the package with the @vue prefix is meant to be used with vue-cli, is that assumption correct? It would be cool to have some documentation about those two packages, since it's super misleading especially with outdated docs which recommend to use vue-jest@next (will create a PR for those). Another question is why there is a newer version available for vue3-jest but not for @vue/vue3-jest.

Thanks in advance!

nogic1008 commented 2 years ago

@MrDeerly vue3-jest is no longer used because vue2-jest namespace was stolen.

You should use @vue/vueX-jest for jest@27.x or vue-jest for jest@26.x.

jest vue You should choose...
26.x 2.x vue-jest@4.x
26.x 3.x vue-jest@5.x
27.x 2.x @vue/vue2-jest@27.x
27.x 3.x @vue/vue3-jest@27.x