|
13 | 13 | "lint:fix": "eslint . --fix", |
14 | 14 | "format": "prettier --write .", |
15 | 15 | "format:check": "prettier --check .", |
16 | | - "check": "npm run typecheck && npm run lint && npm run format:check", |
| 16 | + "test": "vitest run", |
| 17 | + "test:watch": "vitest", |
| 18 | + "test:coverage": "vitest run --coverage", |
| 19 | + "check": "npm run typecheck && npm run lint && npm run format:check && npm run test", |
17 | 20 | "prepare": "husky", |
18 | 21 | "generate:types": "cd src-tauri && cargo test export_bindings --no-fail-fast" |
19 | 22 | }, |
|
59 | 62 | "@tailwindcss/vite": "^4.0.0", |
60 | 63 | "@tanstack/router-plugin": "^1.139.11", |
61 | 64 | "@tauri-apps/cli": "^2.10.0", |
| 65 | + "@testing-library/jest-dom": "^6.9.1", |
| 66 | + "@testing-library/react": "^16.3.2", |
| 67 | + "@testing-library/user-event": "^14.6.1", |
62 | 68 | "@types/node": "^22.0.0", |
63 | 69 | "@types/react": "^19.0.0", |
64 | 70 | "@types/react-dom": "^19.0.0", |
65 | 71 | "@vitejs/plugin-react": "^4.3.0", |
| 72 | + "@vitest/coverage-v8": "^4.0.18", |
66 | 73 | "eslint": "^9.0.0", |
67 | 74 | "eslint-config-prettier": "^10.1.8", |
68 | 75 | "eslint-plugin-react": "^7.37.0", |
69 | 76 | "eslint-plugin-react-hooks": "^5.0.0", |
70 | 77 | "eslint-plugin-simple-import-sort": "^12.1.1", |
71 | 78 | "globals": "^16.0.0", |
72 | 79 | "husky": "^9.0.0", |
| 80 | + "jsdom": "^28.1.0", |
73 | 81 | "lint-staged": "^15.0.0", |
74 | 82 | "prettier": "^3.7.2", |
75 | 83 | "prettier-plugin-tailwindcss": "^0.7.2", |
76 | 84 | "tailwindcss": "^4.0.0", |
77 | 85 | "typescript": "^5.6.0", |
78 | 86 | "typescript-eslint": "^8.0.0", |
79 | | - "vite": "^6.0.0" |
| 87 | + "vite": "^6.0.0", |
| 88 | + "vitest": "^4.0.18" |
80 | 89 | }, |
81 | 90 | "packageManager": "pnpm@9.14.2" |
82 | 91 | } |
0 commit comments