build: align authentication runtime on Node 24
This commit is contained in:
@@ -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" });
|
||||
|
||||
Reference in New Issue
Block a user