Files
gh-christianlouis-inboxconv…/frontend/package.json
T
google-labs-jules[bot] 2d232bb603 🧪 [testing improvement description] Implement unit tests for useAuthStore and fix linting.
🎯 **What:** This PR adds comprehensive unit tests for the `useAuthStore` Zustand store and resolves a CI linting failure by downgrading ESLint to version 9.
📊 **Coverage:** The new tests cover:
- Initial state verification.
- User state updates via `setUser`.
- Token management via `setToken`.
- Loading state toggles with `setLoading`.
- Complete logout flow, including `localStorage` cleanup.
 **Result:** Increased reliability of the authentication logic and restored CI health. The store implementation was also refined to properly include and handle the `token` property.

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-23 14:42:29 +00:00

31 lines
652 B
JSON

{
"name": "frontend",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint"
},
"dependencies": {
"@tanstack/react-query": "^5.95.0",
"axios": "^1.13.6",
"lucide-react": "^0.577.0",
"next": "16.1.7",
"react": "19.2.4",
"react-dom": "19.2.4",
"zustand": "^5.0.12"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "16.1.7",
"tailwindcss": "^4",
"typescript": "^5"
}
}