build: align authentication runtime on Node 24

This commit is contained in:
2026-08-16 17:13:55 +02:00
parent 9196639cb3
commit d464f3a982
6 changed files with 165 additions and 19 deletions
+4
View File
@@ -2,6 +2,10 @@ import { test, expect } from "vitest";
import { buildApp } from "../src/app.js";
import { loadConfig } from "../src/config.js";
test("runtime exposes the Node 24 compatibility contract", () => {
expect(Number(process.versions.node.split(".")[0])).toBe(24);
});
test("GET /health reports process readiness without external services", async () => {
const app = buildApp(loadConfig({ THT_HARNESS_DIR: "/tmp/h" }));
const res = await app.inject({ method: "GET", url: "/health" });