Skip to content

Commit 2684d25

Browse files
committed
test(vitest): create config and first test
1 parent 3eb7e25 commit 2684d25

File tree

5 files changed

+344
-6
lines changed

5 files changed

+344
-6
lines changed

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@
7272
"prepublishOnly": "pnpm build",
7373
"docs:dev": "vitepress dev docs",
7474
"docs:build": "vitepress build docs",
75-
"docs:serve": "vitepress serve docs"
75+
"docs:serve": "vitepress serve docs",
76+
"test": "vitest",
77+
"test:ui": "vitest --ui",
78+
"coverage": "vitest run --coverage"
7679
},
7780
"peerDependencies": {
7881
"vue": "^3.4.0"
@@ -91,6 +94,7 @@
9194
"@unocss/preset-icons": "0.59.4",
9295
"@unocss/preset-uno": "0.59.4",
9396
"@vitejs/plugin-vue": "^5.0.4",
97+
"@vitest/ui": "^1.5.0",
9498
"@vue/compiler-sfc": "^3.4.23",
9599
"@vue/server-renderer": "^3.4.23",
96100
"@vue/test-utils": "^2.4.5",
@@ -103,6 +107,7 @@
103107
"chart.js": "^4.4.2",
104108
"consola": "^3.2.3",
105109
"eslint": "^9.1.0",
110+
"happy-dom": "^14.7.1",
106111
"json-editor-vue": "^0.14.0",
107112
"mkdist": "^1.4.0",
108113
"quill": "^2.0.0",
@@ -120,6 +125,7 @@
120125
"vite-plugin-pages": "^0.32.1",
121126
"vite-ssg": "^0.23.6",
122127
"vitepress": "1.1.3",
128+
"vitest": "^1.5.0",
123129
"vue": "^3.4.23",
124130
"vue-demi": "^0.14.7",
125131
"vue-router": "^4.3.2",

0 commit comments

Comments
 (0)