Single module modding
This commit is contained in:
@@ -128,7 +128,7 @@ Deno.test("check-mods finds broken mods", async () => {
|
||||
new DataView(huge.buffer).setUint32(20, 16);
|
||||
Deno.writeFileSync(`${mod}/textures/huge.png`, huge);
|
||||
// a script that doesn't typecheck
|
||||
Deno.writeTextFileSync(`${mod}/scripts/client.ts`, "export function setup(ctx: number) { ctx.nope(); }\n");
|
||||
Deno.writeTextFileSync(`${mod}/scripts/main.ts`, "export function client(ctx: number) { ctx.nope(); }\n");
|
||||
// a dependency that isn't installed, and no longer depending on bworld
|
||||
const manifest = JSON.parse(Deno.readTextFileSync(`${mod}/manifest.json`));
|
||||
manifest.dependencies = [{ id: "missing_mod", version: "1.0.0" }];
|
||||
@@ -147,7 +147,7 @@ Deno.test("check-mods finds broken mods", async () => {
|
||||
has(report.errors, `elements[0].faces can't have "up"`);
|
||||
has(report.errors, `key needs "B", which pattern uses`);
|
||||
has(report.errors, "textures/huge.png: is");
|
||||
has(report.errors, "scripts don't typecheck");
|
||||
has(report.errors, "its script doesn't typecheck");
|
||||
has(report.errors, `depends on "missing_mod", which isn't installed`);
|
||||
has(report.errors, "entity model broken:no_such_worn doesn't exist");
|
||||
has(report.errors, "worn must be { model, texture }");
|
||||
|
||||
Reference in New Issue
Block a user