diff --git a/package.json b/package.json index 7345f270c..669ad9a46 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "lint:fix-eslint": "eslint --ext .vue,.ts,.tsx ./ --max-warnings 0 --ignore-path .gitignore --ignore-path .eslintignore --fix", "lint:fix-prettier": "prettier ./ --ignore-path .gitignore --ignore-path .eslintignore --write './*.{vue,ts,tsx}' --ignore-unknown", "lint:vue": "vue-tsc --noEmit -p tsconfig.build.json", - "update:coverage-badge": "node scripts/test/generate-coverage.js", + "generate:coverage-badge": "npm run test:unit-coverage && node scripts/test/generate-coverage.js", "update:css": "node scripts/generate-css-vars.js", "changelog": "publish-cli changelog", "robot": "publish-cli robot-msg", @@ -123,7 +123,8 @@ "@typescript-eslint/parser": "~5.34.0", "@vitejs/plugin-vue": "^2.3.1", "@vitejs/plugin-vue-jsx": "^1.3.3", - "@vitest/ui": "^1.6.0", + "@vitest/coverage-v8": "^2.0.5", + "@vitest/ui": "^2.0.5", "@vue/babel-plugin-jsx": "1.1.1", "@vue/eslint-config-typescript": "^9.1.0", "@vue/runtime-core": "^3.2.41", @@ -132,7 +133,6 @@ "@vue/test-utils": "2.4.1", "autoprefixer": "^10.2.4", "axios": "^1.7.2", - "c8": "^7.11.3", "commitizen": "^4.2.3", "concurrently": "^6.5.1", "cross-env": "^7.0.3", @@ -179,7 +179,7 @@ "typescript": "~4.7.2", "vite": "^2.9.14", "vite-plugin-tdoc": "^2.0.1", - "vitest": "^1.6.0", + "vitest": "^2.0.5", "vue": "3.3.8", "vue-eslint-parser": "^8.0.1", "vue-router": "4.0.11",