Files
ShellBook/apps/server/test/health.test.ts
T
Florian Schmidt b7051d2479 Merge branch 't3/implement-auth-deploy'
Integrate auth, config, watcher and terminal wiring in buildApp: auth guards every API route by default, notebook watcher events feed the /api/events hub, the terminal runs in the configured workspace, and SHELLBOOK_DATA_DIR is the single data directory variable. The systemd unit uses KillMode=process so tmux sessions survive service restarts.
2026-11-16 00:11:06 +01:00

13 lines
398 B
TypeScript

import { describe, expect, it } from "vitest";
import { buildApp } from "../src/app";
describe("health", () => {
it("answers on /api/health", async () => {
const app = await buildApp({ auth: false });
const res = await app.inject({ method: "GET", url: "/api/health" });
expect(res.statusCode).toBe(200);
expect(res.json()).toEqual({ ok: true });
await app.close();
});
});