test: cover publish wait in CLI schema checks

This commit is contained in:
Oleg Isonen committed 2026-11-13 17:06:42 +00:00
1 parent fece298b28
commit 46bf00e06b
1 file changed
+15 -3
+15 -3
View File
@@ -105,7 +105,10 @@ test("prints api command schema as json", () => {
}),
expect.objectContaining({
useCase: "Publish project",
commands: ["webstudio publish deploy --target production --json"],
commands: [
"webstudio publish deploy --target production --json",
"webstudio publish deploy --target production --json --wait",
],
}),
])
);
@@ -155,8 +158,17 @@ test("prints compact mcp tool summaries as json by default", () => {
inputSchema,
})
);
// Includes Form simulation, custom response headers, screenshot, and all three style source transfer schemas.
expect(JSON.stringify(handshakePayload).length).toBeLessThan(224_500);
// Publish validation and execution occupy about 1.5k characters; keep the old
// budget for all other tools and a tight overall handshake budget.
expect(JSON.stringify(handshakePayload).length).toBeLessThan(226_000);
expect(
JSON.stringify(
handshakePayload.filter(
({ name }) =>
name !== "validate-publish" && name !== "get-publish-report"
)
).length
).toBeLessThan(224_500);
const screenshotTool = expectedTools.find(
({ name }) => name === "screenshot"
);