Block registry api

This commit is contained in:
2026-11-12 20:41:13 -03:00
parent e7fe663746
commit 76802ed430
39 changed files with 499 additions and 100 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ export function setup(ctx: ServerContext) {
await assertRejects(() => config_of({ copper_tools: { sped: 1 } }), Error, "sped");
Deno.writeTextFileSync(`${dir}/copper_tools/config.json`, config_file([16]));
const errors = load_and_check(dir).find((mod) => mod.id === "copper_tools")!.report.errors;
const errors = (await load_and_check(dir)).find((mod) => mod.id === "copper_tools")!.report.errors;
assert(errors.some((error) => error.startsWith("config.json")), errors.join("\n"));
Deno.removeSync(dir, { recursive: true });