sharing contexts

This commit is contained in:
2026-11-14 13:49:21 -03:00
parent 313098892e
commit a69db0cd2a
13 changed files with 192 additions and 208 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ Deno.test("recipes can only be registered while shared phases set up", async ()
`(globalThis as any).testrecipes_late = () => ctx.recipes.register("testrecipes:sifting", {});`,
);
try {
await assertRejects(() => test_game(dir), Error, "recipes can only be registered during setup");
await assertRejects(() => test_game(dir), Error, "recipe can only be registered while the shared phase runs");
} finally {
delete (globalThis as Record<string, unknown>).testrecipes_late;
Deno.removeSync(dir, { recursive: true });