test: tighten codex hook relay assertions

This commit is contained in:
Shakker
2026-05-10 18:54:04 +01:00
parent 154221241a
commit 64370ba2ef

View File

@@ -112,8 +112,8 @@ describe("Codex native hook relay config", () => {
events: ["pre_tool_use", "post_tool_use"],
});
expect(config["hooks.PreToolUse"]).toEqual([expect.objectContaining({ matcher: null })]);
expect(config["hooks.PostToolUse"]).toEqual([expect.objectContaining({ matcher: null })]);
expect((config["hooks.PreToolUse"] as Array<{ matcher: unknown }>)[0]?.matcher).toBeNull();
expect((config["hooks.PostToolUse"] as Array<{ matcher: unknown }>)[0]?.matcher).toBeNull();
});
it("builds deterministic clearing config when the relay is disabled", () => {