🧪 test: Add unit tests

This commit is contained in:
2026-07-01 12:20:56 +07:00
parent 25cf1df334
commit f5a7bdc778
8 changed files with 723 additions and 3 deletions
+5 -2
View File
@@ -10,11 +10,13 @@
"dev": "electron-vite dev",
"build": "pnpm run check && electron-vite build",
"preview": "electron-vite preview",
"test": "vitest run",
"test:watch": "vitest",
"start": "electron-vite preview",
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
"typecheck": "pnpm run typecheck:node && pnpm run typecheck:web",
"check": "pnpm run lint && pnpm run typecheck && pnpm run format",
"check": "pnpm run lint && pnpm run typecheck && pnpm run format && pnpm run test",
"lint": "eslint .",
"format": "prettier --check .",
"format:fix": "prettier --write .",
@@ -61,7 +63,8 @@
"tailwindcss": "^4.3.1",
"typescript": "^5.7.3",
"typescript-eslint": "^8.62.0",
"vite": "^6.0.7"
"vite": "^6.0.7",
"vitest": "^4.1.9"
},
"packageManager": "pnpm@10.33.0"
}