diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 064be245a..6e2fd9b02 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: cache: 'pnpm' - run: pnpm install - run: pnpm run lint - - run: pnpm run test + - run: pnpm run test:coverage - run: pnpm run build env: CI: true diff --git a/package.json b/package.json index 0dfaeaa5d..6dafab481 100644 --- a/package.json +++ b/package.json @@ -32,10 +32,11 @@ "@typescript-eslint/parser": "5.36.1", "@vitejs/plugin-vue": "3.0.3", "@vitejs/plugin-vue-jsx": "2.0.0", + "@vitest/coverage-c8": "0.22.1", "@vue/compat": "3.2.38", - "@vue/runtime-core": "3.2.38", "@vue/compiler-dom": "3.2.38", "@vue/compiler-sfc": "3.2.38", + "@vue/runtime-core": "3.2.38", "c8": "7.12.0", "eslint": "8.23.0", "eslint-config-prettier": "8.5.0", @@ -51,8 +52,8 @@ "rollup-plugin-typescript2": "0.33.0", "tslib": "2.4.0", "typescript": "4.8.2", - "vitepress": "0.22.4", "vite": "3.0.9", + "vitepress": "0.22.4", "vitest": "0.22.1", "vue": "3.2.38", "vue-class-component": "8.0.0-rc.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 89acbfaec..14cf2c9c3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,7 @@ specifiers: '@typescript-eslint/parser': 5.36.1 '@vitejs/plugin-vue': 3.0.3 '@vitejs/plugin-vue-jsx': 2.0.0 + '@vitest/coverage-c8': 0.22.1 '@vue/compat': 3.2.38 '@vue/compiler-dom': 3.2.38 '@vue/compiler-sfc': 3.2.38 @@ -50,6 +51,7 @@ devDependencies: '@typescript-eslint/parser': 5.36.1_yqf6kl63nyoq5megxukfnom5rm '@vitejs/plugin-vue': 3.0.3_vite@3.0.9+vue@3.2.38 '@vitejs/plugin-vue-jsx': 2.0.0_vite@3.0.9+vue@3.2.38 + '@vitest/coverage-c8': 0.22.1_jsdom@20.0.0 '@vue/compat': 3.2.38_vue@3.2.38 '@vue/compiler-dom': 3.2.38 '@vue/compiler-sfc': 3.2.38 @@ -916,6 +918,24 @@ packages: vue: 3.2.38 dev: true + /@vitest/coverage-c8/0.22.1_jsdom@20.0.0: + resolution: {integrity: sha512-KOOYpO7EGpaF+nD8GD+Y05D0JtZp12NUu6DdLXvBPqSOPo2HkZ7KNBtfR0rb6gOy3NLtGiWTYTzCwhajgb2HlA==} + dependencies: + c8: 7.12.0 + vitest: 0.22.1_jsdom@20.0.0 + transitivePeerDependencies: + - '@edge-runtime/vm' + - '@vitest/browser' + - '@vitest/ui' + - happy-dom + - jsdom + - less + - sass + - stylus + - supports-color + - terser + dev: true + /@volar/code-gen/0.40.5: resolution: {integrity: sha512-M3D/2pmvjyGYalmldcyvTqVXhUnDxMYA2HtThmdQ8pVsTW4BVVzqrjnJAvHKNfM/zU0XA+fzIh1tfJ4Cssoe5w==} dependencies: