Skip to content

Commit 3322dad

Browse files
committed
feat: add vitest testing infrastructure and utilities
- Add Vitest configuration with jsdom environment - Configure TypeScript for test files - Create test setup with React Testing Library - Add test fixtures for panel testing - Add test helpers and utilities
1 parent 07b932c commit 3322dad

17 files changed

+2684
-23
lines changed

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"check:write": "pnpm run lint && pnpm run typecheck",
2323
"generate-client": "tsx scripts/update-openapi-client.ts",
2424
"prepare": "husky",
25-
"knip": "knip"
25+
"knip": "knip",
26+
"test": "vitest run"
2627
},
2728
"keywords": [
2829
"posthog",
@@ -40,14 +41,19 @@
4041
"@electron-forge/plugin-vite": "^7.10.2",
4142
"@electron-forge/publisher-github": "^7.10.2",
4243
"@electron-forge/shared-types": "^7.10.2",
44+
"@testing-library/jest-dom": "^6.9.1",
45+
"@testing-library/react": "^16.3.0",
46+
"@testing-library/user-event": "^14.6.1",
4347
"@types/node": "^20.19.21",
4448
"@types/react": "^18.2.48",
4549
"@types/react-dom": "^18.2.18",
4650
"@types/uuid": "^9.0.7",
4751
"@vitejs/plugin-react": "^4.2.1",
52+
"@vitest/ui": "^4.0.10",
4853
"autoprefixer": "^10.4.17",
4954
"electron": "^28.2.0",
5055
"husky": "^9.1.7",
56+
"jsdom": "^26.0.0",
5157
"knip": "^5.66.3",
5258
"lint-staged": "^15.5.2",
5359
"postcss": "^8.4.33",
@@ -57,6 +63,7 @@
5763
"typescript": "^5.9.3",
5864
"vite": "^5.0.12",
5965
"vite-tsconfig-paths": "^5.1.4",
66+
"vitest": "^4.0.10",
6067
"yaml": "^2.8.1"
6168
},
6269
"dependencies": {

0 commit comments

Comments
 (0)