Skip to content

Commit bfcb5c7

Browse files
committed
Add tests
1 parent 1231310 commit bfcb5c7

File tree

3 files changed

+2596
-0
lines changed

3 files changed

+2596
-0
lines changed

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,19 @@
3131
"@types/jsdom": "^20.0.0",
3232
"@types/node": "^18.8.1",
3333
"@vitejs/plugin-vue": "^3.1.2",
34+
"@vitest/coverage-c8": "^0.24.0",
3435
"@vue/tsconfig": "^0.1.3",
36+
"jsdom": "^20.0.1",
3537
"typescript": "^4.8.4",
3638
"vite": "^3.1.4",
3739
"vite-plugin-dts": "^1.6.4",
40+
"vitest": "^0.24.0",
3841
"vue": "^3.2.0",
3942
"vue-tsc": "^0.40.13"
4043
},
4144
"scripts": {
45+
"test:unit": "vitest --environment jsdom",
46+
"coverage": "vitest run --coverage --environment jsdom",
4247
"build": "pnpm build-dev && pnpm build-neutral && pnpm build-prod && pnpm type-check",
4348
"build-dev": "vite build --mode development",
4449
"build-neutral": "vite build --mode neutral",

0 commit comments

Comments
 (0)