chore: upgrade vitest to 4 (#23223)

* chore: upgrade vitest to 4

* ci: update

* chore: update
This commit is contained in:
btea
2025-12-27 21:12:53 +08:00
committed by GitHub
parent 37439699a7
commit bf8022113b
6 changed files with 272 additions and 392 deletions

View File

@@ -2,6 +2,8 @@ name: 📦 Package Size Report
on:
pull_request:
branches:
- 'master'
types: [opened, synchronize]
jobs:

View File

@@ -4,8 +4,6 @@ name: 🧪 Test Coverage
on:
pull_request:
branches:
- master
workflow_dispatch:
jobs:

View File

@@ -78,10 +78,9 @@
"@types/gulp": "^4.0.9",
"@types/jsdom": "^16.2.14",
"@types/node": "^22.9.0",
"@vitest/coverage-v8": "^2.0.5",
"@vitest/ui": "^2.0.5",
"@vitest/coverage-v8": "^4.0.16",
"@vitest/ui": "^4.0.16",
"@vue/server-renderer": "catalog:",
"c8": "^7.11.3",
"chalk": "^5.0.1",
"consola": "^2.15.3",
"cz-git": "^1.11.1",
@@ -100,7 +99,7 @@
"tinyglobby": "^0.2.15",
"tsx": "^4.19.3",
"typescript": "~5.5.4",
"vitest": "^2.0.5",
"vitest": "^4.0.16",
"vue": "catalog:",
"vue-router": "^4.0.16",
"vue-tsc": "=3.1.0"

646
pnpm-lock.yaml generated
View File

File diff suppressed because it is too large Load Diff

View File

@@ -12,12 +12,8 @@ export default defineConfig({
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
reporters: ['default'],
testTransformMode: {
web: ['*.{ts,tsx}'],
},
coverage: {
reporter: ['text', 'json-summary', 'json'],
include: ['packages/**/*.test.{ts,tsx}'],
exclude: [
'play/**',
'**/lang/**',

View File

@@ -1,3 +0,0 @@
import { defineWorkspace } from 'vitest/config'
export default defineWorkspace(['./vitest.config.mts'])