feat: deploy portable workspace registry
This commit is contained in:
@@ -43,11 +43,12 @@ test("loop F1: crea sessione → SSE riceve il widget → risponde → il modell
|
||||
const base = `http://127.0.0.1:${(app.server.address() as any).port}`;
|
||||
|
||||
// 1. Create session — spawns fake-pi, sends prompt, fake-pi emits widget
|
||||
await fetch(`${base}/sessions`, {
|
||||
const created = await fetch(`${base}/sessions`, {
|
||||
method: "POST",
|
||||
headers: { "content-type": "application/json" },
|
||||
body: JSON.stringify({ workspace: "w", question: "q" }),
|
||||
});
|
||||
expect(created.status).toBe(200);
|
||||
|
||||
// 2. Small delay to let fake-pi process the prompt and fill pendingWidget
|
||||
await new Promise((r) => setTimeout(r, 50));
|
||||
|
||||
Reference in New Issue
Block a user