chore(desktop): add vitest for pure-helper tests

This commit is contained in:
Jannis Braun
2026-04-27 12:29:38 +02:00
parent 4fa2414933
commit 4574a99f2a
3 changed files with 15 additions and 1 deletions
+4 -1
View File
@@ -16,6 +16,8 @@
"build": "tsc && electron-builder",
"build:all": "tsc && electron-builder --mac --win --linux --arm64 --x64",
"clean": "rm -rf dist dist-electron",
"test": "vitest run",
"test:watch": "vitest",
"postinstall": "electron-rebuild -f -w uiohook-napi"
},
"dependencies": {
@@ -26,6 +28,7 @@
"@electron/rebuild": "^3.7.1",
"electron": "^40.0.0",
"electron-builder": "^25.1.8",
"typescript": "^5.7.2"
"typescript": "^5.7.2",
"vitest": "^4.0.18"
}
}
+8
View File
@@ -0,0 +1,8 @@
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
include: ['src/**/*.test.ts'],
environment: 'node',
},
});