bffda95a7c
Root cause: @vitest/coverage-v8@^4.1.0 forced vitest@4.1.9 into apps/homepage/node_modules, creating two vitest installations (v2 at root, v4 in homepage). @testing-library/jest-dom's vitest.d.ts augmented the root vitest v2 module, but homepage tests imported vitest v4 — so the type augmentation for matchers (toBeDisabled, toHaveAttribute, etc.) never applied. Fix: downgrade @vitest/coverage-v8 from ^4.1.0 to ^2.1.9 to match vitest 2.x used by the rest of the monorepo. This unifies vitest at v2.1.9 across all workspaces, allowing the jest-dom type augmentation to take effect. Validation: - npm ls vitest: single v2.1.9 installation (no nested vitest in homepage) - Homepage type-check (tsc --noEmit): 0 errors (all TS2339 resolved) - Existing setup.ts and vitest.config.ts were already correctly configured
50 lines
1.4 KiB
JSON
50 lines
1.4 KiB
JSON
{
|
|
"name": "@rentaldrivego/homepage",
|
|
"version": "1.0.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev -H 0.0.0.0 -p 3000",
|
|
"build": "next build",
|
|
"start": "next start -H 0.0.0.0 -p 3000",
|
|
"type-check": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"lint": "eslint . --max-warnings=0",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check ."
|
|
},
|
|
"dependencies": {
|
|
"@fontsource-variable/inter": "^5.2.8",
|
|
"@fontsource-variable/noto-sans-arabic": "^5.2.10",
|
|
"firebase-admin": "^10.3.0",
|
|
"next": "^16.2.9",
|
|
"node-cron": "4.5.0",
|
|
"nodemailer": "9.0.1",
|
|
"react": "^19.2.0",
|
|
"react-dom": "^19.2.0",
|
|
"turbo": "2.10.0",
|
|
"zod": "^4.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@axe-core/playwright": "^4.12.1",
|
|
"@eslint/js": "^9.0.0",
|
|
"@playwright/test": "^1.61.0",
|
|
"@testing-library/jest-dom": "^6.9.0",
|
|
"@testing-library/react": "^16.3.0",
|
|
"@testing-library/user-event": "^14.6.0",
|
|
"@types/node": "^20.12.0",
|
|
"@types/react": "^19.2.0",
|
|
"@types/react-dom": "^19.2.0",
|
|
"@vitest/coverage-v8": "^2.1.9",
|
|
"eslint": "^9.0.0",
|
|
"eslint-config-next": "^16.2.0",
|
|
"eslint-config-prettier": "^10.1.0",
|
|
"globals": "^17.0.0",
|
|
"jsdom": "^29.0.0",
|
|
"prettier": "^3.8.0",
|
|
"typescript": "^5.4.0",
|
|
"typescript-eslint": "^8.0.0",
|
|
"vitest": "^2.1.0"
|
|
}
|
|
}
|