perf: defer unconfigured gateway hooks

This commit is contained in:
Peter Steinberger
2026-04-20 19:46:13 +01:00
parent ee54a8d298
commit cf7b906216
14 changed files with 443 additions and 253 deletions

View File

@@ -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");
});