chore: upgrade Vitest to v5

Update frontend dev tooling to Vitest 5 by bumping `vitest`, `@vitest/browser-playwright`, and `@vitest/coverage-v8`, plus `@types/react-dom`. Add an override for `@storybook/addon-vitest` to pin Vitest-related packages to compatible versions and avoid dependency mismatch issues. Also bump the Go toolchain patch version from `1.27.0` to `1.27.1` in `go.mod`.
This commit is contained in:
Sanaei
2026-09-03 20:37:10 +02:00
parent a31fa9abfa
commit 8411b1dd9e
3 changed files with 162 additions and 253 deletions
+9 -4
View File
@@ -64,11 +64,11 @@
"@testing-library/dom": "^10.4.1",
"@testing-library/react": "^16.3.3",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.5",
"@types/react-dom": "^19.2.7",
"@types/swagger-ui-react": "^5.18.0",
"@vitejs/plugin-react": "^6.1.1",
"@vitest/browser-playwright": "4.1.11",
"@vitest/coverage-v8": "^4.1.11",
"@vitest/browser-playwright": "5.0.0",
"@vitest/coverage-v8": "^5.0.0",
"husky": "^9.1.7",
"jsdom": "^30.0.1",
"lint-staged": "^17.4.1",
@@ -80,7 +80,7 @@
"storybook": "^10.6.0",
"typescript": "7.0.2",
"vite": "8.2.2",
"vitest": "^4.1.11"
"vitest": "^5.0.0"
},
"overrides": {
"dompurify": "^3.4.11",
@@ -95,6 +95,11 @@
},
"@typeschema/valibot": {
"valibot": "^1.1.0"
},
"@storybook/addon-vitest": {
"vitest": "$vitest",
"@vitest/browser-playwright": "$@vitest/browser-playwright",
"@vitest/browser": "5.0.0"
}
},
"allowScripts": {