Some checks failed
CI / changes (push) Successful in 6s
CI / backend-tests (push) Has been skipped
Deploy / deploy (push) Blocked by required conditions
CI / changes (pull_request) Successful in 5s
CI / backend-tests (pull_request) Has been skipped
Deploy / changes (push) Successful in 6s
Deploy / build-backend (push) Has been skipped
Deploy / build-worker (push) Has been skipped
Deploy / build-frontend (push) Has been cancelled
- Wire vitest (jsdom, globals, @ alias->src, jest-dom matchers); add
test / test:watch scripts and dev deps (vitest 2.1, @vitejs/plugin-react,
jsdom, @testing-library/{react,dom,jest-dom,user-event}); regen lockfile
(both package.json + package-lock.json, alpine-musl binaries verified).
- Revive 4 orphaned tests: jest.fn->vi.fn (Drawer); fix outdated subtitle
DOM assertion (HeadlineBar); drop stale jest setup comments.
- Extract WKT->GeoJSON parser (wktToGeometry/splitTopLevel/parseRing) from
MarketLayers into src/lib/wkt.ts (pure, behavior-preserving refactor) +
add EWKT SRID-prefix tolerance; cover with src/lib/__tests__/wkt.test.ts
(16 cases incl. lon/lat order, holes, multipolygon, EWKT, garbage->null).
57 tests green; type-check green; build green. CI wiring is a devops follow-up.
Refs #999.
50 lines
1.4 KiB
JSON
50 lines
1.4 KiB
JSON
{
|
|
"name": "gendesign-frontend",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"type-check": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"codegen": "openapi-typescript http://localhost:8000/openapi.json -o src/lib/api-types.ts"
|
|
},
|
|
"dependencies": {
|
|
"@sentry/nextjs": "^10.53.1",
|
|
"@tanstack/react-query": "^5.50.0",
|
|
"echarts": "^6.0.0",
|
|
"echarts-for-react": "^3.0.6",
|
|
"leaflet": "^1.9.4",
|
|
"leaflet-draw": "^1.0.4",
|
|
"lucide-react": "^0.511.0",
|
|
"next": "^15.0.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-leaflet": "^5.0.0",
|
|
"tslib": "^2.8.1"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.0.0",
|
|
"@testing-library/dom": "^10.4.0",
|
|
"@testing-library/jest-dom": "^6.6.3",
|
|
"@testing-library/react": "^16.1.0",
|
|
"@testing-library/user-event": "^14.5.2",
|
|
"@types/leaflet": "^1.9.0",
|
|
"@types/leaflet-draw": "^1.0.0",
|
|
"@types/node": "^22.0.0",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"eslint": "^9.0.0",
|
|
"eslint-config-next": "^15.0.0",
|
|
"jsdom": "^25.0.1",
|
|
"openapi-typescript": "^7.0.0",
|
|
"postcss": "^8.4.0",
|
|
"tailwindcss": "^4.0.0",
|
|
"typescript": "5.9.3",
|
|
"vitest": "^2.1.9"
|
|
}
|
|
}
|