fix: harden Pi management readiness
This commit is contained in:
@@ -23,7 +23,7 @@ const base: SessionSummary = {
|
||||
};
|
||||
|
||||
beforeEach(() => {
|
||||
server.use(http.get("http://localhost:8787/sessions/s1/documents", () =>
|
||||
server.use(http.get("/api/sessions/s1/documents", () =>
|
||||
HttpResponse.json([
|
||||
{ phase: "—", key: "question", title: "Original question", format: "text", content: "How many ablations?" },
|
||||
{ phase: "F7", key: "sql", title: "Final SQL", format: "sql", content: "SELECT 1" },
|
||||
@@ -77,7 +77,7 @@ test("a malformed document renders a fallback without taking down its siblings",
|
||||
// unmounts the tree); the good sibling document must still render.
|
||||
// resetHandlers(...) replaces the beforeEach handler so this response is used.
|
||||
server.resetHandlers(
|
||||
http.get("http://localhost:8787/sessions/s1/documents", () =>
|
||||
http.get("/api/sessions/s1/documents", () =>
|
||||
HttpResponse.json([
|
||||
{ phase: "F4", key: "schema", title: "Schema linking", format: "schema-linking", content: '{"joins":[]}' },
|
||||
{ phase: "—", key: "question", title: "Original question", format: "text", content: "SIBLING-SURVIVES" },
|
||||
@@ -95,7 +95,7 @@ test("a malformed document renders a fallback without taking down its siblings",
|
||||
|
||||
test("renders the canonical summary order and formats human text as Markdown", async () => {
|
||||
server.resetHandlers(
|
||||
http.get("http://localhost:8787/sessions/s1/documents", () =>
|
||||
http.get("/api/sessions/s1/documents", () =>
|
||||
HttpResponse.json([
|
||||
{ phase: "—", key: "question", title: "Original question", format: "text", content: "Original **question**" },
|
||||
{ phase: "F7", key: "sql", title: "Final SQL", format: "sql", content: "SELECT 1" },
|
||||
@@ -129,7 +129,7 @@ test("renders the canonical summary order and formats human text as Markdown", a
|
||||
|
||||
test("renders one approved-then-declined memory list with Markdown details", async () => {
|
||||
server.resetHandlers(
|
||||
http.get("http://localhost:8787/sessions/s1/documents", () =>
|
||||
http.get("/api/sessions/s1/documents", () =>
|
||||
HttpResponse.json([
|
||||
{
|
||||
phase: "F8",
|
||||
@@ -182,7 +182,7 @@ test("never renders technical approval, promotion, or memory decisions", async (
|
||||
{ type: "column_excluded", subject: "fact_a.note", detail: "Non **pertinente**" },
|
||||
].map((decision) => JSON.stringify(decision)).join("\n");
|
||||
server.resetHandlers(
|
||||
http.get("http://localhost:8787/sessions/s1/documents", () =>
|
||||
http.get("/api/sessions/s1/documents", () =>
|
||||
HttpResponse.json([
|
||||
{ phase: "—", key: "decisions", title: "Decisions", format: "decisions", content: lines },
|
||||
]),
|
||||
|
||||
Reference in New Issue
Block a user