quasarframework / quasar-testing

Testing Harness App Extensions for the Quasar Framework 2.0+
https://testing.quasar.dev
MIT License
180 stars 65 forks source link

Error updating to Vitest 2 #381

Closed alditis closed 2 weeks ago

alditis commented 1 month ago

Vitest current version is 2.0.4. @quasar/quasar-app-extension-testing-unit-vitest uses peer dependency Vitest ^1.1.0.

Error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @quasar/quasar-app-extension-testing-unit-vitest@1.0.0
npm ERR! Found: vitest@2.0.4
npm ERR! node_modules/vitest
npm ERR!   dev vitest@"2.0.4" from the root project
npm ERR!   peerOptional vitest@"^0.34.6 || ^1.0.0 || ^2.0.0" from @nuxt/test-utils@3.14.0
npm ERR!   node_modules/@nuxt/test-utils
npm ERR!     dev @nuxt/test-utils@"3.14.0" from the root project
npm ERR!     @nuxt/test-utils@">=3.9.0" from vitest-environment-nuxt@1.0.0
npm ERR!     node_modules/vitest-environment-nuxt
npm ERR!       vitest-environment-nuxt@"^1.0.0" from @nuxt/test-utils@3.14.0
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer vitest@"^1.1.0" from @quasar/quasar-app-extension-testing-unit-vitest@1.0.0
npm ERR! node_modules/@quasar/quasar-app-extension-testing-unit-vitest
npm ERR!   dev @quasar/quasar-app-extension-testing-unit-vitest@"1.0.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: vitest@1.6.0
npm ERR! node_modules/vitest
npm ERR!   peer vitest@"^1.1.0" from @quasar/quasar-app-extension-testing-unit-vitest@1.0.0
npm ERR!   node_modules/@quasar/quasar-app-extension-testing-unit-vitest
npm ERR!     dev @quasar/quasar-app-extension-testing-unit-vitest@"1.0.0" from the root project
IlCallo commented 1 month ago

That's correct, we don't currently support Vitest 2, since it has been released as stable since a couple weeks We'll check this out in some more weeks, let's wait for a couple rounds of patch fixes before supporting it

Reference: https://vitest.dev/guide/migration

IlCallo commented 2 weeks ago

Published v1.1 which supports Vitest 2 and bumps some deps