mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:40:43 +00:00
refactor(plugins): remove extension jiti test hooks
This commit is contained in:
@@ -123,16 +123,11 @@ it("loads the packaged runtime wrapper without recursing through the stable root
|
||||
);
|
||||
}, 240_000);
|
||||
|
||||
it("does not use Jiti when only a TypeScript Matrix runtime shim exists", async () => {
|
||||
it("does not load when only a TypeScript Matrix runtime shim exists", async () => {
|
||||
const fixtureRoot = makeFixtureRoot(".tmp-matrix-runtime-ts-only-");
|
||||
|
||||
writeOpenClawPackageFixture(fixtureRoot);
|
||||
writeSourceRuntimeWrapperFixture(fixtureRoot, { runtimeExtension: ".ts" });
|
||||
writeFixtureFile(
|
||||
fixtureRoot,
|
||||
"node_modules/jiti/index.js",
|
||||
"throw new Error('matrix wrapper must not require jiti');\n",
|
||||
);
|
||||
|
||||
await expect(
|
||||
importFixtureModule(fixtureRoot, "extensions/matrix/src/plugin-entry.runtime.js"),
|
||||
|
||||
Reference in New Issue
Block a user