Skip to content

Commit 4c39d74

Browse files
committed
chore: remove vitest
1 parent 162fcb2 commit 4c39d74

File tree

8 files changed

+36
-46
lines changed

8 files changed

+36
-46
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ An mobile web apps template based on the Vue 3 ecosystem.
5050

5151
- 💪 TypeScript, of course
5252

53-
- ⚙️ Unit Testing with [Vitest](https://github.com/vitest-dev/vitest)
54-
5553
- 💾 [Mock](https://github.com/pengzhanbo/vite-plugin-mock-dev-server) server Support
5654

5755
- 🌈 Git hooks - lint and commit
@@ -108,7 +106,6 @@ An mobile web apps template based on the Vue 3 ecosystem.
108106
### Dev tools
109107

110108
- [TypeScript](https://www.typescriptlang.org/)
111-
- [Vitest](https://github.com/vitest-dev/vitest) - Unit testing powered by Vite
112109
- [pnpm](https://pnpm.js.org/) - fast, disk space efficient package manager
113110
- [Netlify](https://www.netlify.com/) - zero-config deployment
114111
- [VS Code Extensions](./.vscode/extensions.json)

README.zh-CN.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ An mobile web apps template based on the Vue 3 ecosystem.
5050

5151
- 💪 TypeScript, 当然
5252

53-
- ⚙️ 使用 [Vitest](https://github.com/vitest-dev/vitest) 进行单元测试
54-
5553
- 💾 [本地数据模拟](https://github.com/pengzhanbo/vite-plugin-mock-dev-server)的支持
5654

5755
- 🌈 Git hooks - 提交代码 eslint 检测 和 提交规范检测
@@ -108,7 +106,6 @@ An mobile web apps template based on the Vue 3 ecosystem.
108106
### 开发工具
109107

110108
- [TypeScript](https://www.typescriptlang.org/)
111-
- [Vitest](https://github.com/vitest-dev/vitest) - 基于 Vite 的单元测试框架
112109
- [pnpm](https://pnpm.js.org/) - 快, 节省磁盘空间的包管理器
113110
- [Netlify](https://www.netlify.com/) - 零配置的部署
114111
- [VS Code Extensions](./.vscode/extensions.json)

build/vite/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export function createVitePlugins(mode: string) {
5656
],
5757
imports: [
5858
'vue',
59-
'vitest',
6059
'@vueuse/core',
6160
VueRouterAutoImports,
6261
{

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"build:dev": "vue-tsc --noEmit && vite build --mode development",
1111
"build:pro": "vue-tsc --noEmit && vite build --mode production",
1212
"preview": "vite preview",
13-
"test": "vitest",
1413
"lint": "eslint .",
1514
"lint:fix": "eslint . --fix",
1615
"release": "bumpp --commit --push --tag",
@@ -74,7 +73,6 @@
7473
"vite-plugin-sitemap": "^0.7.1",
7574
"vite-plugin-vconsole": "^2.1.1",
7675
"vite-plugin-vue-devtools": "^7.7.5",
77-
"vitest": "^3.1.2",
7876
"vue-tsc": "^2.2.10"
7977
},
8078
"pnpm": {

pnpm-lock.yaml

Lines changed: 35 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/types/auto-imports.d.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@
77
export {}
88
declare global {
99
const EffectScope: typeof import('vue')['EffectScope']
10-
const afterAll: typeof import('vitest')['afterAll']
11-
const afterEach: typeof import('vitest')['afterEach']
12-
const assert: typeof import('vitest')['assert']
1310
const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
1411
const autoResetRef: typeof import('@vueuse/core')['autoResetRef']
15-
const beforeAll: typeof import('vitest')['beforeAll']
16-
const beforeEach: typeof import('vitest')['beforeEach']
17-
const chai: typeof import('vitest')['chai']
1812
const computed: typeof import('vue')['computed']
1913
const computedAsync: typeof import('@vueuse/core')['computedAsync']
2014
const computedEager: typeof import('@vueuse/core')['computedEager']
@@ -37,12 +31,9 @@ declare global {
3731
const debouncedWatch: typeof import('@vueuse/core')['debouncedWatch']
3832
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
3933
const defineComponent: typeof import('vue')['defineComponent']
40-
const describe: typeof import('vitest')['describe']
4134
const eagerComputed: typeof import('@vueuse/core')['eagerComputed']
4235
const effectScope: typeof import('vue')['effectScope']
43-
const expect: typeof import('vitest')['expect']
4436
const extendRef: typeof import('@vueuse/core')['extendRef']
45-
const getActiveHead: typeof import('@unhead/vue')['getActiveHead']
4637
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
4738
const getCurrentScope: typeof import('vue')['getCurrentScope']
4839
const h: typeof import('vue')['h']
@@ -57,7 +48,6 @@ declare global {
5748
const isReactive: typeof import('vue')['isReactive']
5849
const isReadonly: typeof import('vue')['isReadonly']
5950
const isRef: typeof import('vue')['isRef']
60-
const it: typeof import('vitest')['it']
6151
const locale: typeof import('@/utils/i18n')['locale']
6252
const makeDestructurable: typeof import('@vueuse/core')['makeDestructurable']
6353
const markRaw: typeof import('vue')['markRaw']
@@ -106,12 +96,9 @@ declare global {
10696
const shallowReactive: typeof import('vue')['shallowReactive']
10797
const shallowReadonly: typeof import('vue')['shallowReadonly']
10898
const shallowRef: typeof import('vue')['shallowRef']
109-
const showNotify: typeof import('vant/es')['showNotify']
110-
const suite: typeof import('vitest')['suite']
11199
const syncRef: typeof import('@vueuse/core')['syncRef']
112100
const syncRefs: typeof import('@vueuse/core')['syncRefs']
113101
const templateRef: typeof import('@vueuse/core')['templateRef']
114-
const test: typeof import('vitest')['test']
115102
const throttledRef: typeof import('@vueuse/core')['throttledRef']
116103
const throttledWatch: typeof import('@vueuse/core')['throttledWatch']
117104
const toRaw: typeof import('vue')['toRaw']
@@ -303,8 +290,6 @@ declare global {
303290
const useWindowFocus: typeof import('@vueuse/core')['useWindowFocus']
304291
const useWindowScroll: typeof import('@vueuse/core')['useWindowScroll']
305292
const useWindowSize: typeof import('@vueuse/core')['useWindowSize']
306-
const vi: typeof import('vitest')['vi']
307-
const vitest: typeof import('vitest')['vitest']
308293
const watch: typeof import('vue')['watch']
309294
const watchArray: typeof import('@vueuse/core')['watchArray']
310295
const watchAtMost: typeof import('@vueuse/core')['watchAtMost']

tests/index.spec.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@
3434
"src/**/*.ts",
3535
"src/**/*.tsx",
3636
"src/**/*.vue",
37-
"tests/**/*.ts",
38-
"tests/**/*.tsx",
3937
"src/types/components.d.ts",
4038
"src/types/auto-imports.d.ts",
41-
"src/types/typed-router.d.ts",
42-
"tests/*.ts"
39+
"src/types/typed-router.d.ts"
4340
]
4441
}

0 commit comments

Comments
 (0)