Skip to content

Commit 7720fc0

Browse files
Add vitest
1 parent 1ea959b commit 7720fc0

File tree

2 files changed

+956
-1
lines changed

2 files changed

+956
-1
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"deploy": "gh-pages -d docs",
2020
"prepublishOnly": "npm run build",
2121
"lint": "eslint src/**/*.{ts,vue} --max-warnings 20",
22-
"prepare": "husky install"
22+
"prepare": "husky install",
23+
"test:unit": "vitest"
2324
},
2425
"lint-staged": {
2526
"src/**/*.{js,ts,vue}": [
@@ -88,6 +89,7 @@
8889
"@vue/cli-service": "^5.0.8",
8990
"@vue/compiler-sfc": "^3.3.10",
9091
"@vue/eslint-config-typescript": "^12.0.0",
92+
"@vue/test-utils": "^2.4.3",
9193
"@wdns/vue-code-block": "^2.3.1",
9294
"autoprefixer": "^10.4.16",
9395
"eslint": "^8.55.0",
@@ -97,6 +99,7 @@
9799
"eslint-plugin-vue": "^9.19.2",
98100
"gh-pages": "^6.1.0",
99101
"husky": "^8.0.3",
102+
"jsdom": "^23.0.1",
100103
"lint-staged": "^15.2.0",
101104
"miragejs": "^0.1.48",
102105
"pinia": "^2.1.7",
@@ -126,6 +129,7 @@
126129
"vite-plugin-static-copy": "^0.17.1",
127130
"vite-plugin-stylelint": "^5.2.1",
128131
"vite-plugin-vuetify": "^1.0.2",
132+
"vitest": "^1.0.2",
129133
"vue-tsc": "^1.8.25",
130134
"webfontloader": "^1.6.28"
131135
}

0 commit comments

Comments
 (0)