Trek_CN/server/tests/integration
Julien G. 905c7d460b
Add comprehensive backend test suite (#339)
* add test suite, mostly covers integration testing, tests are only backend side

* workflow runs the correct script

* workflow runs the correct script

* workflow runs the correct script

* unit tests incoming

* Fix multer silent rejections and error handler info leak

- Revert cb(null, false) to cb(new Error(...)) in auth.ts, collab.ts,
  and files.ts so invalid uploads return an error instead of silently
  dropping the file
- Error handler in app.ts now always returns 500 / "Internal server
  error" instead of forwarding err.message to the client

* Use statusCode consistently for multer errors and error handler

- Error handler in app.ts reads err.statusCode to forward the correct
  HTTP status while keeping the response body generic
2026-04-03 13:17:53 +02:00
..
admin.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
assignments.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
atlas.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
auth.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
backup.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
budget.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
collab.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
dayNotes.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
days.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
files.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
health.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
immich.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
maps.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
mcp.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
misc.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
notifications.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
packing.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
places.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
profile.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
reservations.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
security.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
share.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
trips.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
vacay.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
weather.test.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00