- Configure Vitest with jsdom environment - Add test setup with @testing-library/jest-dom - Add 6 tests for toastStore (addToast, removeToast, clearToasts) - Add 8 tests for useToast hook (success, error, warning, info, dismiss) All 14 tests passing Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
57 lines
1.6 KiB
JSON
57 lines
1.6 KiB
JSON
{
|
|
"name": "@construccion-mvp/frontend-web",
|
|
"version": "1.0.0",
|
|
"description": "Frontend Web - MVP Sistema Administración de Obra e INFONAVIT",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
"lint:fix": "eslint . --ext ts,tsx --fix",
|
|
"type-check": "tsc --noEmit",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"test:coverage": "vitest run --coverage"
|
|
},
|
|
"dependencies": {
|
|
"@hookform/resolvers": "^3.3.3",
|
|
"@tanstack/react-query": "^5.90.20",
|
|
"axios": "^1.6.2",
|
|
"clsx": "^2.0.0",
|
|
"date-fns": "^3.0.6",
|
|
"lucide-react": "^0.303.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-hook-form": "^7.49.2",
|
|
"react-hot-toast": "^2.6.0",
|
|
"react-router-dom": "^6.20.1",
|
|
"zod": "^3.22.4",
|
|
"zustand": "^4.4.7"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/react": "^18.2.43",
|
|
"@types/react-dom": "^18.2.17",
|
|
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
|
"@typescript-eslint/parser": "^6.14.0",
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"autoprefixer": "^10.4.16",
|
|
"eslint": "^8.55.0",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
"jsdom": "^28.0.0",
|
|
"postcss": "^8.4.32",
|
|
"tailwindcss": "^3.4.0",
|
|
"typescript": "^5.2.2",
|
|
"vite": "^5.0.8",
|
|
"vitest": "^4.0.18"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0",
|
|
"npm": ">=9.0.0"
|
|
}
|
|
}
|