The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
test(booking-import): read the endpoints without a non-null assertion and lower the any baseline
Maurice1058849388cf
diff --git a/server/scripts/eslint-baseline.json b/server/scripts/eslint-baseline.jsonindex cac4010e2..51de21574 100644--- a/server/scripts/eslint-baseline.json+++ b/server/scripts/eslint-baseline.json@@ -1,6 +1,6 @@{"src": {- "@typescript-eslint/no-explicit-any": 86,+ "@typescript-eslint/no-explicit-any": 85,"@typescript-eslint/no-non-null-assertion": 263,"@typescript-eslint/no-require-imports": 18,"@typescript-eslint/no-unsafe-function-type": 1,diff --git a/server/tests/unit/nest/booking-import/kitineraryMapper.test.ts b/server/tests/unit/nest/booking-import/kitineraryMapper.test.tsindex 3cc5c7c4f..fc19f6e00 100644--- a/server/tests/unit/nest/booking-import/kitineraryMapper.test.ts+++ b/server/tests/unit/nest/booking-import/kitineraryMapper.test.ts@@ -60,7 +60,7 @@ describe('kitinerary mapper — multi-leg flight grouping', () => {expect(booking.endpoints!.map((e) => e.role)).toEqual(['from', 'stop', 'to']);expect(booking.endpoints!.map((e) => e.sequence)).toEqual([0, 1, 2]);// The stop carries the onward departure, as the planner form and the MCP tools write it.- expect(booking.endpoints!.map((e) => e.local_time)).toEqual(['10:00', '14:30', '23:30']);+ expect((booking.endpoints ?? []).map((e) => e.local_time)).toEqual(['10:00', '14:30', '23:30']);const meta = booking.metadata as any;expect(meta.legs).toHaveLength(2);expect(meta.legs[0]).toMatchObject({ from: 'FRA', to: 'BER', flight_number: 'LH 100' });@@ -284,7 +284,7 @@ describe('kitinerary mapper: a rail ticket with changes (#2895)', () => {needs_review: false,source: { fileName: 'db-ticket.pdf', index: 0 },});- expect(booking.endpoints!.map((e) => [e.role, e.sequence, e.name, e.local_time])).toEqual([+ expect((booking.endpoints ?? []).map((e) => [e.role, e.sequence, e.name, e.local_time])).toEqual([['from', 0, 'Klagenfurt West', '06:12'],['stop', 1, 'Villach Hbf', '06:40'],['stop', 2, 'Heidelberg Hbf', '13:05'],