mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 12:00:44 +00:00
perf: defer unconfigured gateway hooks
This commit is contained in:
@@ -149,6 +149,12 @@ describe("resolveBuildAllSteps", () => {
|
||||
expect(step?.cache).toBeUndefined();
|
||||
});
|
||||
|
||||
it("does not cache hook metadata over compiled hook handlers", () => {
|
||||
const step = BUILD_ALL_STEPS.find((entry) => entry.label === "copy-hook-metadata");
|
||||
expect(step).toBeTruthy();
|
||||
expect(step?.cache).toBeUndefined();
|
||||
});
|
||||
|
||||
it("rejects unknown build profiles", () => {
|
||||
expect(() => resolveBuildAllSteps("wat")).toThrow("Unknown build profile: wat");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user