From 53ddc470e31805c0e0ac30cfa3dce3546e2f445b Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Wed, 20 May 2026 13:14:17 +0900 Subject: [PATCH] test(rules-injector): align duplicate-cache mock types Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- src/hooks/rules-injector/injector.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/rules-injector/injector.test.ts b/src/hooks/rules-injector/injector.test.ts index b7dd8acc2..b34c94df3 100644 --- a/src/hooks/rules-injector/injector.test.ts +++ b/src/hooks/rules-injector/injector.test.ts @@ -87,10 +87,10 @@ async function createProcessor(projectRoot: string): Promise<{ trackedShouldApplyRuleCount += 1; return { applies: true, reason: "matched" }; }, - isDuplicateByRealPath: (realPath: string, cache: Set) => + isDuplicateByRealPath: (realPath: string, cache: ReadonlySet) => cache.has(realPath), createContentHash: (content: string) => `hash:${content}`, - isDuplicateByContentHash: (hash: string, cache: Set) => + isDuplicateByContentHash: (hash: string, cache: ReadonlySet) => cache.has(hash), }); }