Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Update vitest monorepo to v5 (#5708)

Openverse (Bot)a50daa75d296
diff --git a/frontend/package.json b/frontend/package.json
index 5b1d20d41..988ed118c 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -83,8 +83,8 @@
"@playwright/test": "1.49.1",
"@testing-library/user-event": "^14.5.2",
"@testing-library/vue": "^8.1.0",
- "@vitest/coverage-v8": "^4.0.0",
- "@vitest/ui": "^4.0.0",
+ "@vitest/coverage-v8": "^5.0.0",
+ "@vitest/ui": "^5.0.0",
"@vue/test-utils": "^2.5.1",
"adm-zip": "^0.6.0",
"chokidar": "^4.0.0",
@@ -97,7 +97,7 @@
"rimraf": "^6.0.1",
"talkback": "^4.2.0",
"typescript": "5.9.3",
- "vitest": "^4.0.0",
+ "vitest": "^5.0.0",
"vitest-dom": "^0.1.1",
"vue": "^3.5.44",
"vue-i18n": "^11.4.16",
diff --git a/packages/js/api-client/package.json b/packages/js/api-client/package.json
index ea54fce10..40986b34a 100644
--- a/packages/js/api-client/package.json
+++ b/packages/js/api-client/package.json
@@ -46,7 +46,7 @@
"rollup": "^4.22.4",
"typescript": "^5.5.4",
"vite": "^8.3.5",
- "vitest": "^4.0.0"
+ "vitest": "^5.0.0"
},
"dependencies": {
"openapi-fetch": "^0.14.0"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b28842554..c901ee560 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -152,7 +152,7 @@ importers:
version: 11.4.16
'@nuxt/test-utils':
specifier: ^4.3.4
- version: 4.3.4(9a7f6ab53455d3c8b85b54163e6b1a45)
+ version: 4.3.4(434e737f1f5d7713bb337992f473cd3d)
'@nuxtjs/i18n':
specifier: ^10.6.0
@@ -166,11 +166,11 @@ importers:
specifier: ^8.1.0
'@vitest/coverage-v8':
- specifier: ^4.0.0
- version: 4.1.11([email protected])
+ specifier: ^5.0.0
+ version: 5.1.0([email protected])
'@vitest/ui':
- specifier: ^4.0.0
- version: 4.1.11([email protected])
+ specifier: ^5.0.0
+ version: 5.1.0([email protected])
'@vue/test-utils':
specifier: ^2.5.1
@@ -208,11 +208,11 @@ importers:
specifier: 5.9.3
version: 5.9.3
vitest:
- specifier: ^4.0.0
+ specifier: ^5.0.0
vitest-dom:
specifier: ^0.1.1
- version: 0.1.1([email protected])
+ version: 0.1.1([email protected])
vue:
specifier: ^3.5.44
version: 3.5.44([email protected])
@@ -251,8 +251,8 @@ importers:
specifier: ^8.3.5
vitest:
- specifier: ^4.0.0
+ specifier: ^5.0.0
packages/js/eslint-plugin:
dependencies:
@@ -2796,6 +2796,15 @@ packages:
'@vitest/browser':
optional: true
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-OY9aShBQG5KOIw2zCo9fDoCHI9RHliNHJ//nM7m6jGg41Hyke9JOGWmeMlK74xYErsxMoK8mIB3gAeEyFVA7LA==}
+ peerDependencies:
+ '@vitest/browser': 5.1.0
+ vitest: 5.1.0
+ peerDependenciesMeta:
+ '@vitest/browser':
+ optional: true
+
'@vitest/[email protected]':
resolution: {integrity: sha512-pTWGW3y6lH2ukCuuffpan6kFxG6nIuoesbhMiQxskyQMRcCN5t9SXsKrNHvEw3p8wcCsgJoRqFZVkOTn6TjclA==}
peerDependencies:
@@ -2812,6 +2821,14 @@ packages:
'@vitest/[email protected]':
resolution: {integrity: sha512-VX2x5vNJXET47KAFzwERI+KRMtTTCSWTfSMKsW7JsUsXV4psq++e3DvZpuTDOpHcxytiDs6p2nhVb2tVDiiUYw==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-WOjuS+xcjSIy7ruYBQ+9BUcV7XZQ0FyVcbWbWxW9TRx/kLGx5SQaeFRIFDJxjNplb6YsT7SpKo2zuXXUo91OIQ==}
+ engines: {node: '>=22'}
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-+ZFta25nWtGCOBG9/IET8w1RO5Oawsd6H8Uf6AJ9EA/StFuKVtKAEJEJ6uRt84OH+T4YkI0ASmIHAhRA+0KVxw==}
+ engines: {node: '>=22'}
+
'@vitest/[email protected]':
resolution: {integrity: sha512-2XJVD55d1o5AZous5CCGKS74g/riOj9odEt2bQpCVZeblHyHdnMeFl4jl0XjU21stf4mbjUkew2eXQZt65g5CQ==}
peerDependencies:
@@ -2823,9 +2840,23 @@ packages:
vite:
optional: true
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-5umB9/jlWcqVS6fsrFmv5Gdnpu6wAUio/lEOwAmvB7v+lFo/IW2B9FhAD0p19GCULTgMzLCdUmuCDCnAzWgppQ==}
+ peerDependencies:
+ msw: ^2.4.9 || ^3.0.0
+ vite: ^6.0.0 || ^7.0.0 || ^8.0.0
+ peerDependenciesMeta:
+ msw:
+ optional: true
+ vite:
+ optional: true
+
'@vitest/[email protected]':
resolution: {integrity: sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-IRx5mc30CrFzyMNni6SZKQ1r53kv049Mcvvk0WbWcD6PUz/bFjG4zYv0KosQAeonPpGp5WxqYBMqdSOfJfvVWw==}
+
'@vitest/[email protected]':
resolution: {integrity: sha512-LztvUgdwMNJMIkj3hQnnxiC2Xy1zNxq928W/xhjCLaNCzqTZOudjwbQf6v9IntZGPw132i2Lq2rgTRZHD3JHNw==}
@@ -2835,14 +2866,25 @@ packages:
'@vitest/[email protected]':
resolution: {integrity: sha512-apNa/prQy2qCeywhnixOHPRCgGNhvg7T4Dapfl1GahLp/R+uhBm5cPyFoNVyqsNd2h1nJxL6BqqdIjiABL60YA==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==}
+
'@vitest/[email protected]':
resolution: {integrity: sha512-r/rwyKoev21mWdRGSEkZOqkQ2BYy68mwjihg9M90nNRbf4NGrgzZ4cj6JNCEwlOGJkbKeMgsjlykvwKUbRr7gw==}
peerDependencies:
vitest: 4.1.11
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-00S3x4NRmqIBUiTVWF9/xLaA9EP9KeKv0+1sBO7e2Y4luBISlW+2ttnhlk/zjbTqEvVhJWCCo7MXzu6zNbefqQ==}
+ peerDependencies:
+ vitest: 5.1.0
+
'@vitest/[email protected]':
resolution: {integrity: sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-V+qgCwkvVw+s1t1S5TaoBHsLi5Sz/YmohCMoOu0mZ8ZQst2bKhRYARAQucWpVg8D0mv0x5MHcWXY5QdOsoiGBQ==}
+
resolution: {integrity: sha512-w4qhIJ8ZSitgLAkVay6AbcnC7gP3glYM3fYwKV3srj8m494E3xtrCv6E+bWviiK/8hs6e6t1ij1s2Endql7vzQ==}
@@ -4116,6 +4158,9 @@ packages:
resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==}
+ resolution: {integrity: sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==}
+
resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}
engines: {node: '>=16.0.0'}
@@ -4155,9 +4200,6 @@ packages:
resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}
engines: {node: '>=16'}
- resolution: {integrity: sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==}
-
resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==}
@@ -6292,6 +6334,10 @@ packages:
resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}
+ resolution: {integrity: sha512-Al01C2JIBnO2CXCAPbpAl6sUiOZHeThGtHYNTa51JRw9PyWOCdr+9Ong05R4qg/Sk3+H645E8ov1h2c58ityNw==}
+ engines: {node: '>=20.0.0'}
+
resolution: {integrity: sha512-uo33abH+Ays0xYaDysoBt494Hb3hsEczMpcC0MwFl773pazORx4fmvKhclhR1wonUbB6vvpRsvVMwnhfqeMc+A==}
engines: {node: ^16.14.0 || >= 17.3.0}
@@ -6847,6 +6893,47 @@ packages:
jsdom:
optional: true
+ resolution: {integrity: sha512-MzmNFnrwa8v8lF1bLxw3UJ4EREwVOVb75VqJZmUDRjJ6EluK/x9th7qTbaeDk41WxE1GxWqmTXcdsfobfH5sOA==}
+ engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0}
+ hasBin: true
+ peerDependencies:
+ '@edge-runtime/vm': '*'
+ '@opentelemetry/api': ~1.9.1
+ '@types/node': ^22.0.0 || >=24.0.0
+ '@vitest/browser-playwright': 5.1.0
+ '@vitest/browser-preview': 5.1.0
+ '@vitest/browser-webdriverio': ^5.0.0-beta.5 || >=5.0.0
+ '@vitest/coverage-istanbul': 5.1.0
+ '@vitest/coverage-v8': 5.1.0
+ '@vitest/ui': 5.1.0
+ happy-dom: '*'
+ jsdom: '*'
+ vite: ^6.4.0 || ^7.0.0 || ^8.0.0
+ peerDependenciesMeta:
+ '@edge-runtime/vm':
+ optional: true
+ '@opentelemetry/api':
+ optional: true
+ '@types/node':
+ optional: true
+ '@vitest/browser-playwright':
+ optional: true
+ '@vitest/browser-preview':
+ optional: true
+ '@vitest/browser-webdriverio':
+ optional: true
+ '@vitest/coverage-istanbul':
+ optional: true
+ '@vitest/coverage-v8':
+ optional: true
+ '@vitest/ui':
+ optional: true
+ happy-dom:
+ optional: true
+ jsdom:
+ optional: true
+
resolution: {integrity: sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==}
@@ -6966,6 +7053,11 @@ packages:
engines: {node: '>=8'}
hasBin: true
+ resolution: {integrity: sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==}
+ engines: {node: '>=20.11'}
+ hasBin: true
+
resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
engines: {node: '>=10'}
@@ -8153,7 +8245,7 @@ snapshots:
rc9: 3.1.0
std-env: 4.3.0
- '@nuxt/[email protected](9a7f6ab53455d3c8b85b54163e6b1a45)':
+ '@nuxt/[email protected](434e737f1f5d7713bb337992f473cd3d)':
dependencies:
'@clack/prompts': 1.8.1
@@ -8174,18 +8266,18 @@ snapshots:
tinyexec: 1.3.1
ufo: 1.6.4
- vitest-environment-nuxt: 2.0.0(9a7f6ab53455d3c8b85b54163e6b1a45)
+ vitest-environment-nuxt: 2.0.0(434e737f1f5d7713bb337992f473cd3d)
vue: 3.5.44([email protected])
optionalDependencies:
'@playwright/test': 1.49.1
- '@vitest/ui': 4.1.11([email protected])
+ '@vitest/ui': 5.1.0([email protected])
h3: 1.15.11
jsdom: 27.4.0
playwright-core: 1.49.1
transitivePeerDependencies:
- '@farmfe/core'
- '@nuxt/schema'
@@ -9655,6 +9747,19 @@ snapshots:
std-env: 4.3.0
tinyrainbow: 3.2.0
+ optional: true
+
+ dependencies:
+ '@bcoe/v8-coverage': 1.0.2
+ '@vitest/istanbul-lib-coverage': 2.1.0
+ '@vitest/istanbul-lib-report': 2.1.0
+ ast-v8-to-istanbul: 1.0.7
+ magicast: 0.5.5
+ obug: 3.0.0
+ std-env: 4.3.0
+ tinyrainbow: 3.2.0
dependencies:
@@ -9673,6 +9778,12 @@ snapshots:
chai: 6.3.0
tinyrainbow: 3.2.0
+ '@vitest/[email protected]': {}
+
+ '@vitest/[email protected]':
+ dependencies:
+ '@vitest/istanbul-lib-coverage': 2.1.0
+
dependencies:
'@vitest/spy': 4.1.11
@@ -9681,10 +9792,23 @@ snapshots:
optionalDependencies:
+ dependencies:
+ '@jridgewell/trace-mapping': 0.3.31
+ '@vitest/spy': 5.1.0
+ estree-walker: 3.0.3
+ magic-string: 1.4.4
+ optionalDependencies:
+
'@vitest/[email protected]':
dependencies:
tinyrainbow: 3.2.0
+ '@vitest/[email protected]':
+ dependencies:
+ tinyrainbow: 3.2.0
+
'@vitest/[email protected]':
dependencies:
'@vitest/utils': 4.1.11
@@ -9699,6 +9823,8 @@ snapshots:
'@vitest/[email protected]': {}
+ '@vitest/[email protected]': {}
+
dependencies:
'@vitest/utils': 4.1.11
@@ -9709,6 +9835,17 @@ snapshots:
tinyglobby: 0.2.17
tinyrainbow: 3.2.0
+ optional: true
+
+ dependencies:
+ '@vitest/utils': 5.1.0
+ fflate: 0.8.3
+ flatted: 3.4.4
+ pathe: 2.0.3
+ sirv: 3.0.2
+ tinyrainbow: 3.2.0
'@vitest/[email protected]':
dependencies:
@@ -9716,6 +9853,12 @@ snapshots:
convert-source-map: 2.0.0
tinyrainbow: 3.2.0
+ '@vitest/[email protected]':
+ dependencies:
+ '@vitest/pretty-format': 5.1.0
+ convert-source-map: 2.0.0
+ tinyrainbow: 3.2.0
+
dependencies:
'@volar/source-map': 2.4.28
@@ -11230,7 +11373,10 @@ snapshots:
+ optional: true
+
dependencies:
@@ -11271,11 +11417,9 @@ snapshots:
dependencies:
- flatted: 3.3.2
+ flatted: 3.4.4
keyv: 4.5.4
-
@@ -11519,7 +11663,8 @@ snapshots:
transitivePeerDependencies:
- '@noble/hashes'
+ optional: true
@@ -11799,18 +11944,21 @@ snapshots:
+ optional: true
dependencies:
istanbul-lib-coverage: 3.2.2
make-dir: 4.0.0
supports-color: 7.2.0
+ optional: true
dependencies:
html-escaper: 2.0.2
istanbul-lib-report: 3.0.1
+ optional: true
dependencies:
@@ -13615,6 +13763,8 @@ snapshots:
+
@@ -14063,7 +14213,7 @@ snapshots:
terser: 5.51.2
yaml: 2.7.0
dependencies:
aria-query: 5.3.0
chalk: 5.3.0
@@ -14071,11 +14221,11 @@ snapshots:
dom-accessibility-api: 0.6.3
lodash-es: 4.17.21
redent: 4.0.0
- [email protected](9a7f6ab53455d3c8b85b54163e6b1a45):
+ [email protected](434e737f1f5d7713bb337992f473cd3d):
dependencies:
- '@nuxt/test-utils': 4.3.4(9a7f6ab53455d3c8b85b54163e6b1a45)
+ '@nuxt/test-utils': 4.3.4(434e737f1f5d7713bb337992f473cd3d)
transitivePeerDependencies:
- '@cucumber/cucumber'
- '@farmfe/core'
@@ -14140,6 +14290,31 @@ snapshots:
transitivePeerDependencies:
- msw
+ dependencies:
+ '@types/chai': 5.2.3
+ chai: 6.3.0
+ es-module-lexer: 2.3.2
+ expect-type: 1.4.0
+ magic-string: 1.4.4
+ obug: 3.0.0
+ picomatch: 4.0.7
+ std-env: 4.3.0
+ tinybench: 6.2.3
+ tinyexec: 1.3.1
+ tinyglobby: 0.2.17
+ why-is-node-running: 3.2.1
+ optionalDependencies:
+ '@opentelemetry/api': 1.9.1
+ '@types/node': 22.20.5
+ '@vitest/coverage-v8': 5.1.0([email protected])
+ '@vitest/ui': 5.1.0([email protected])
+ jsdom: 27.4.0
+ transitivePeerDependencies:
+ - msw
+
@@ -14287,6 +14462,8 @@ snapshots:
siginfo: 2.0.0
stackback: 0.0.2
+
dependencies:
ansi-styles: 4.3.0