deps(web): bump the breaking group across 1 directory with 4 updates (#110)

* deps(web): bump the breaking group across 1 directory with 4 updates

Bumps the breaking group with 4 updates in the /web directory: [@vitest/browser](https://github.com/vitest-dev/vitest/tree/HEAD/packages/browser), [@vitest/browser-playwright](https://github.com/vitest-dev/vitest/tree/HEAD/packages/browser-playwright), [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@vitest/browser` from 4.1.11 to 5.0.0
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.0/packages/browser)

Updates `@vitest/browser-playwright` from 4.1.11 to 5.0.0
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.0/packages/browser-playwright)

Updates `@vitest/coverage-v8` from 4.1.11 to 5.0.0
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.0/packages/coverage-v8)

Updates `vitest` from 4.1.11 to 5.0.0
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.0/packages/vitest)

---
updated-dependencies:
- dependency-name: "@vitest/browser"
  dependency-version: 5.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: breaking
- dependency-name: "@vitest/browser-playwright"
  dependency-version: 5.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: breaking
- dependency-name: "@vitest/coverage-v8"
  dependency-version: 5.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: breaking
- dependency-name: vitest
  dependency-version: 5.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: breaking
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix vitest config in web

* fix tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: swithek <52840391+swithek@users.noreply.github.com>
This commit is contained in:
dependabot[bot] 2026-09-12 15:29:55 +03:00 committed by GitHub
parent 286041ecec
commit f5913393aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 290 additions and 303 deletions

View File

@ -1 +1 @@
setups.@nuxt/test-utils="4.2.0"
setups.@nuxt/test-utils="4.3.2"

View File

@ -133,14 +133,14 @@
"@iconify-json/svg-spinners": "^1.2.4",
"@intlify/eslint-plugin-vue-i18n": "^4.5.1",
"@nuxt/eslint": "^1.17.0",
"@nuxt/test-utils": "^4.2.0",
"@nuxt/test-utils": "^4.3.2",
"@tailwindcss/typography": "^0.5.20",
"@tailwindcss/vite": "^4.3.3",
"@typescript-eslint/eslint-plugin": "^8.69.0",
"@typescript-eslint/parser": "^8.69.0",
"@vitest/browser": "^4.1.11",
"@vitest/browser-playwright": "^4.1.11",
"@vitest/coverage-v8": "^4.1.11",
"@vitest/browser": "^5.0.0",
"@vitest/browser-playwright": "^5.0.0",
"@vitest/coverage-v8": "^5.0.0",
"@vitest/eslint-plugin": "^1.6.27",
"@vue/test-utils": "^2.5.0",
"concurrently": "^10.0.5",
@ -157,7 +157,7 @@
"tailwindcss": "^4.3.3",
"tw-animate-css": "^1.3.6",
"typescript": "^6.0.3",
"vitest": "^4.1.11",
"vitest": "^5.0.0",
"vue-tsc": "^3.3.11",
"wait-on": "^9.1.0"
}

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,11 @@ const sharedTestOptions = {
concurrent: true,
},
restoreMocks: true,
// vitest clears every mock's call history before each test by
// default, which under concurrency also wipes the mocks of tests
// still running. Each test builds its own mocks, so nothing needs
// clearing.
clearMocks: false,
unstubGlobals: true,
unstubEnvs: true,
// @nuxt/test-utils mounts the test app inside <Suspense>, so vue's dev
@ -28,14 +33,6 @@ const sharedTestOptions = {
if (log.includes("<Suspense> is an experimental feature")) {
return false
}
// the nuxt overrides below point @nuxt/icon at no provider, so
// every icon that is not already in the client bundle fails its
// load and warns once per render. That is the intended trade for
// keeping the iconify api off the network, not a test failure
if (log.startsWith("[Icon] failed to load icon")) {
return false
}
},
} satisfies TestUserConfig

View File

@ -1,5 +1,26 @@
import { registerEndpoint } from "@nuxt/test-utils/runtime"
// the nuxt project points @nuxt/icon at no provider, so every icon that is
// not already in the client bundle fails its load and warns once per
// render. The load is asynchronous and the warning often lands after the
// test has finished, and vitest 5 turns a console message caught while the
// worker is tearing down into an unhandled EnvironmentTeardownError. The
// warning is dropped here, before vitest's console interception forwards
// it, rather than in the main process's onConsoleLog, which runs too late
// to stop the forwarding.
const warn = console.warn
console.warn = (...args: unknown[]) => {
if (
typeof args[0] === "string" &&
args[0].startsWith("[Icon] failed to load icon")
) {
return
}
warn(...args)
}
// mounting anything inside the nuxt runtime boots a router, and the global
// middleware in app/middleware/01.redirect.global.ts asks better-auth for
// the current session before every navigation. Unstubbed that is a real