Skip to content

Commit 06e7f31

Browse files
authored
Merge pull request #25 from electron-vite/vitest
Vitest
2 parents f52233b + 35bb551 commit 06e7f31

File tree

7 files changed

+541
-36
lines changed

7 files changed

+541
-36
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"scripts": {
2121
"dev": "vite build --watch",
2222
"build": "tsc --emitDeclarationOnly && vite build",
23-
"prepublishOnly": "npm run build"
23+
"prepublishOnly": "npm run test && npm run build",
24+
"test": "vitest run"
2425
},
2526
"peerDependencies": {
2627
"esbuild": "*"
@@ -33,7 +34,8 @@
3334
"rollup": "^3.8.1",
3435
"typescript": "^4.9.4",
3536
"vite": "^4.0.3",
36-
"vite-plugin-utils": "^0.3.6"
37+
"vite-plugin-utils": "^0.4.0",
38+
"vitest": "^0.28.3"
3739
},
3840
"files": [
3941
"types",

0 commit comments

Comments
 (0)