sharing contexts
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user