mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:40:43 +00:00
test(plugins): guard legacy bundled hook regressions
This commit is contained in:
@@ -138,4 +138,10 @@ describe("plugin contract boundary invariants", () => {
|
||||
});
|
||||
expect(offenders).toEqual([]);
|
||||
});
|
||||
|
||||
it("keeps bundled plugin production code off legacy before_agent_start hooks", () => {
|
||||
const files = listTsFiles("extensions", { excludeTests: true });
|
||||
const offenders = files.filter((file) => readRepoSource(file).includes("before_agent_start"));
|
||||
expect(offenders).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user