mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore: upgrade vitest to 4 (#23223)
* chore: upgrade vitest to 4 * ci: update * chore: update
This commit is contained in:
2
.github/workflows/publish-size-report.yml
vendored
2
.github/workflows/publish-size-report.yml
vendored
@@ -2,6 +2,8 @@ name: 📦 Package Size Report
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- 'master'
|
||||
types: [opened, synchronize]
|
||||
|
||||
jobs:
|
||||
|
||||
2
.github/workflows/test-coverage.yml
vendored
2
.github/workflows/test-coverage.yml
vendored
@@ -4,8 +4,6 @@ name: 🧪 Test Coverage
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
@@ -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
646
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -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/**',
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
import { defineWorkspace } from 'vitest/config'
|
||||
|
||||
export default defineWorkspace(['./vitest.config.mts'])
|
||||
Reference in New Issue
Block a user