Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(pages): use canonical sources in unpublish tests
Sebastian B66a62c53b327
diff --git a/server/pages/published-pages.test.ts b/server/pages/published-pages.test.tsindex 668c434b9f..6f19ad577a 100644--- a/server/pages/published-pages.test.ts+++ b/server/pages/published-pages.test.ts@@ -343,7 +343,7 @@ describe("unpublishing a page", () => {it.each(["path", "page id"])("unpublishes by %s while a missing page is replaced", async (by) => {const f = setup();signIn();- const source = realpathSync(writeSite(join(f.work, "site")));+ const source = await bundle.pageSource(writeSite(join(f.work, "site")), [f.work]);await f.publish({ path: "site" });const [oldId] = [...f.service.pages.keys()];f.service.pages.delete(oldId!);@@ -373,7 +373,7 @@ describe("unpublishing a page", () => {it("unpublishes by path after the first publish in flight creates its record", async () => {const f = setup();signIn();- const source = realpathSync(writeSite(join(f.work, "site")));+ const source = await bundle.pageSource(writeSite(join(f.work, "site")), [f.work]);const arrived = deferred(), answered = deferred();const fetch = f.service.fetch;f.service.fetch = async (input, init) => {