Skip to content

Commit

Permalink
remove test instance of vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
jzfai committed Sep 10, 2022
1 parent d5eef8d commit 54eee2e
Show file tree
Hide file tree
Showing 36 changed files with 1,106 additions and 557 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-recommended',
'prettier',
'./.eslintrc-auto-import.json',
'./tests/.eslintrc-unit-test.json'
'./.eslintrc-auto-import.json'
// './tests/.eslintrc-unit-test.json'
],
parserOptions: {
parser: '@typescript-eslint/parser',
Expand Down
4 changes: 0 additions & 4 deletions babel.config.js

This file was deleted.

1 change: 0 additions & 1 deletion components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ declare module '@vue/runtime-core' {
ElSvgIcon: typeof import('./src/components/ElSvgIcon.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
TestUnit: typeof import('./src/components/TestUnit.vue')['default']
}
}

Expand Down
38 changes: 0 additions & 38 deletions jest.config.js

This file was deleted.

65 changes: 28 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@
"lint": "eslint --ext .js,.jsx,.vue,.ts,.tsx src --fix",
"prepare": "husky install",
"tsc-check": "tsc",
"test:unit": "vue-cli-service test:unit",
"test:watchAll": "vue-cli-service test:unit --watchAll",
"test:cov": "vue-cli-service test:unit --coverage",
"test:majestic": "majestic"
"vitest": "vitest --ui",
"coverage": "vitest run --coverage"
},
"peerDependencies": {
"vue": "^3.2.26"
},
"dependencies": {
"@element-plus/icons-vue": "^2.0.4",
"@element-plus/icons-vue": "^2.0.9",
"js-error-collection": "^1.0.7",
"axios": "0.21.3",
"echarts": "5.3.2",
Expand Down Expand Up @@ -59,20 +57,7 @@
"vite-plugin-mock": "^2.9.6",
"vite-plugin-style-import": "1.2.1",
"vite-plugin-svg-icons": "1.0.5",
"jest": "<27",
"ts-jest": "<27",
"tslib": "^2.4.0",
"vue-jest": "^5.0.0-alpha.10",
"@babel/preset-env": "^7.17.10",
"@types/jest": "<27",
"@vue/test-utils": "^2.0.0-rc.18",
"babel-jest": "<27",
"jest-serializer-vue": "^2.0.2",
"jest-transform-stub": "^2.0.0",
"@babel/preset-typescript": "7.16.7",
"ts-node": "^10.7.0",
"majestic": "^1.8.1",
"@vue/cli-plugin-unit-jest": "4.5.17",
"@vue/cli-service": "4.5.17",
"@types/node": "^17.0.35",
"@vitejs/plugin-vue": "^2.3.3",
Expand All @@ -85,29 +70,35 @@
"vue-tsc": "^0.34.16",
"vite-plugin-mkcert": "^1.7.2",
"unplugin-vue-define-options": "^0.6.1",
"unocss": "^0.33.5"
"unocss": "^0.33.5",
"@vitest/coverage-c8": "^0.22.1",
"@vitest/ui": "^0.22.1",
"vitest": "^0.22.1",
"@vue/test-utils": "^2.0.2",
"resize-observer-polyfill": "^1.5.1",
"jsdom": "16.4.0"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"html-webpack-plugin",
"vite-plugin-mock",
"unplugin-auto-import",
"unplugin-vue-components",
"vue-template-compiler",
"unocss",
"unplugin",
"vite-plugin-mock",
"@vitejs/plugin-legacy",
"@vitejs/plugin-vue",
"@vitejs/*",
"@babel/*",
"vite",
"vue",
"@unocss/vite",
"rollup",
"vue-jest",
"@babel/*"
"html-webpack-plugin",
"vite-plugin-mock",
"unplugin-auto-import",
"unplugin-vue-components",
"vue-template-compiler",
"unocss",
"unplugin",
"vite-plugin-mock",
"@vitejs/plugin-legacy",
"@vitejs/plugin-vue",
"@vitejs/*",
"@babel/*",
"vite",
"vue",
"@unocss/vite",
"rollup",
"vue-jest",
"@babel/*"
]
}
},
Expand Down
45 changes: 0 additions & 45 deletions src/components/TestUnit.vue

This file was deleted.

Loading

0 comments on commit 54eee2e

Please sign in to comment.