fix: harden Pi management readiness
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { checkDwhHealth } from "../api/sessions";
|
||||
|
||||
// Catches shared browser test fixtures drifting from the same-origin /api contract and
|
||||
// attempting real localhost network requests instead of using MSW.
|
||||
test("the shared MSW health fixture follows the browser same-origin API contract", async () => {
|
||||
await expect(checkDwhHealth()).resolves.toEqual({ ok: true, detail: "ok" });
|
||||
});
|
||||
@@ -1,5 +1,5 @@
|
||||
import { setupServer } from "msw/node";
|
||||
import { http, HttpResponse } from "msw";
|
||||
export const server = setupServer(
|
||||
http.get("http://localhost:8787/health/dwh", () => HttpResponse.json({ ok: true, detail: "ok" })),
|
||||
http.get("/api/health/dwh", () => HttpResponse.json({ ok: true, detail: "ok" })),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user