mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-11 15:54:52 +09:00
Same changes the other packages got in #475 and #476. The permissions move from definePermission calls into the plugin declaration, with the Permissions augmentation in messages.ts so the web build sees it. "type": "module", .js entrypoints and imports, webpack.config.cjs, and the tap tests use import with --type-strip-only. The web plugin now uses a default export function instead of the deprecated BaseWebPlugin class, like exp_roles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
463 B
JavaScript
14 lines
463 B
JavaScript
import path from "node:path";
|
|
import t from "tap";
|
|
import { reportLuaTests } from "../../test/lua/runner.js";
|
|
|
|
const envFile = path.join(import.meta.dirname, "module", "env.lua");
|
|
|
|
// Each file runs in its own lua state, and each test in a fresh environment
|
|
t.test("control.lua", t2 => {
|
|
for (const file of ["requests.lua", "receivers.lua"]) {
|
|
t2.test(file, t3 => reportLuaTests(t3, envFile, path.join(import.meta.dirname, "module", file)));
|
|
}
|
|
t2.end();
|
|
});
|