4d64576f22
- Vitest + React Testing Library + MSW setup - API client: 11 unit tests (fetch, errors, auth header, download, network failure) - Service hooks: 26 tests across members, distributions, stock, dashboard, staff - Custom hooks: 5 debounce tests (timer behavior, reset, custom delay) - Components: 5 tests (offline banner, error boundary with retry) - E2E: staff management page interactions - npm scripts: test, test:run, test:coverage
105 lines
3.1 KiB
JSON
105 lines
3.1 KiB
JSON
{
|
|
"name": "shadboard-nextjs-starter-kit",
|
|
"version": "1.0.0",
|
|
"license": "MIT",
|
|
"private": true,
|
|
"author": {
|
|
"name": "Layth Alqadhi",
|
|
"url": "https://github.com/LaythAlqadhi"
|
|
},
|
|
"scripts": {
|
|
"dev": "next dev --turbopack",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"lint:fix": "next lint --fix",
|
|
"format": "prettier --ignore-path .gitignore --write .",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:e2e": "playwright test e2e/full-check.spec.ts e2e/functional-flows.spec.ts",
|
|
"test:system": "playwright test e2e/system-test.spec.ts",
|
|
"test:all": "playwright test"
|
|
},
|
|
"engines": {
|
|
"node": ">=22",
|
|
"pnpm": ">=10"
|
|
},
|
|
"packageManager": "pnpm@10.8.1",
|
|
"dependencies": {
|
|
"@eslint/eslintrc": "3.2.0",
|
|
"@hookform/resolvers": "3.9.1",
|
|
"@radix-ui/react-alert-dialog": "1.1.1",
|
|
"@radix-ui/react-avatar": "1.1.0",
|
|
"@radix-ui/react-checkbox": "^1.3.4",
|
|
"@radix-ui/react-collapsible": "1.1.0",
|
|
"@radix-ui/react-dialog": "1.1.3",
|
|
"@radix-ui/react-direction": "1.1.0",
|
|
"@radix-ui/react-dropdown-menu": "2.1.1",
|
|
"@radix-ui/react-label": "2.1.0",
|
|
"@radix-ui/react-menubar": "1.1.1",
|
|
"@radix-ui/react-scroll-area": "1.1.0",
|
|
"@radix-ui/react-separator": "1.1.1",
|
|
"@radix-ui/react-slot": "1.1.1",
|
|
"@radix-ui/react-toast": "1.2.1",
|
|
"@radix-ui/react-tooltip": "1.1.5",
|
|
"@tanstack/react-query": "^5.101.0",
|
|
"@tanstack/react-table": "^8.21.3",
|
|
"class-variance-authority": "0.7.1",
|
|
"clsx": "2.1.1",
|
|
"cmdk": "1.1.1",
|
|
"date-fns": "3.6.0",
|
|
"embla-carousel-autoplay": "8.5.1",
|
|
"embla-carousel-react": "8.5.1",
|
|
"emoji-picker-react": "4.12.2",
|
|
"input-otp": "1.4.2",
|
|
"lucide-react": "0.446.0",
|
|
"next": "15.5.18",
|
|
"next-auth": "5.0.0-beta.31",
|
|
"next-intl": "^4.13.0",
|
|
"react": "19.1.3",
|
|
"react-day-picker": "9.6.4",
|
|
"react-dom": "19.1.3",
|
|
"react-hook-form": "^7.78.0",
|
|
"react-icons": "5.5.0",
|
|
"react-use": "17.5.1",
|
|
"recharts": "^3.8.1",
|
|
"sonner": "2.0.2",
|
|
"tailwind-merge": "2.5.2",
|
|
"vaul": "1.1.2",
|
|
"zod": "3.23.8"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/compat": "1.2.7",
|
|
"@ianvs/prettier-plugin-sort-imports": "4.4.1",
|
|
"@playwright/test": "^1.60.0",
|
|
"@tailwindcss/postcss": "4.0.17",
|
|
"@tailwindcss/typography": "0.5.15",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/eslint__eslintrc": "2.1.2",
|
|
"@types/node": "20",
|
|
"@types/react": "19.0.12",
|
|
"@types/react-dom": "19.0.4",
|
|
"@vitejs/plugin-react": "^6.0.2",
|
|
"eslint": "9.18.0",
|
|
"eslint-config-next": "15.5.18",
|
|
"eslint-config-prettier": "10.1.1",
|
|
"eslint-plugin-prettier": "5.2.3",
|
|
"jsdom": "^29.1.1",
|
|
"msw": "^2.14.6",
|
|
"playwright": "^1.60.0",
|
|
"postcss": "8",
|
|
"prettier": "3.5.3",
|
|
"prettier-plugin-tailwindcss": "0.6.11",
|
|
"tailwindcss": "4.1.3",
|
|
"tw-animate-css": "1.2.5",
|
|
"typescript": "5",
|
|
"vitest": "^4.1.8"
|
|
},
|
|
"overrides": {
|
|
"@types/react": "19.0.12",
|
|
"@types/react-dom": "19.0.4"
|
|
}
|
|
}
|