- Add vitest coverage-v8 plugin and configure coverage thresholds (80% lines) - Add coverage exclusions for server-only pages, DB layer, and ML backends - Create eslint-disable annotations for test mocks and setup - Exclude test files from tsconfig to avoid type errors on mocks - Rewrite API route tests (diseases, plants) for async diseases-db imports - Update component tests (EmptyState, Footer, Navbar, LoadingSkeleton, ResultsDashboard, ImageUpload) to match current component implementations - Add page-level tests for homepage, 404, and results page - Fix upload-client tests with proper mock resets in beforeEach - Add diseases-db module as async knowledge base backend - Refactor API routes to use async diseases-db (listDiseases, getDiseaseById, getPlantById, getLookalikeDiseases, etc.) - Add plant field to PredictionResult type and identify route response - Add KB generation scripts (plant-list, disease-templates, generate-full-kb) - Update constants with expanded featured plants and trust signals - Fix ResultsDashboard to use plant from prediction result instead of DB lookup
43 lines
1.0 KiB
JSON
43 lines
1.0 KiB
JSON
{
|
|
"name": "plant-disease-id",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"@libsql/client": "^0.17.3",
|
|
"dotenv": "^17.4.2",
|
|
"drizzle-orm": "^0.45.2",
|
|
"next": "16.2.7",
|
|
"react": "19.2.4",
|
|
"react-dom": "19.2.4",
|
|
"sharp": "^0.34.5",
|
|
"uuid": "^14.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/better-sqlite3": "^7.6.13",
|
|
"@types/jsdom": "^28.0.3",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@types/uuid": "^10.0.0",
|
|
"@vitest/coverage-v8": "^4.1.8",
|
|
"drizzle-kit": "^0.31.10",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.2.7",
|
|
"jsdom": "^29.1.1",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5",
|
|
"vitest": "^4.1.8"
|
|
}
|
|
}
|