Trek_CN/server
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
..
public fix: always fetch fresh photo URLs for map markers instead of using stored HTTP URLs 2026-04-01 19:48:58 +02:00
scripts feat: add encryption key migration script and document it in README 2026-04-01 09:35:32 +02:00
src Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
tests Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
.env.example fix: add OIDC_SCOPE env var and document it across all config files 2026-04-02 07:46:58 +02:00
package-lock.json Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
package.json Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00
reset-admin.js Stabilize core: better-sqlite3, versioned migrations, graceful shutdown 2026-03-22 17:52:24 +01:00
tsconfig.json some fixes 2026-03-30 06:59:24 +02:00
vitest.config.ts Add comprehensive backend test suite (#339) 2026-04-03 13:17:53 +02:00