fix: use platform-independent path check in hook-run-registry.store test

This commit is contained in:
Trevin Chow 2026-01-29 10:12:20 -08:00 committed by Trevin Chow
parent 9fed852c4d
commit f3d4595491

View File

@ -100,7 +100,8 @@ describe("hook-run-registry.store", () => {
const { resolveHookRunRegistryPath } = await import("./hook-run-registry.store.js"); const { resolveHookRunRegistryPath } = await import("./hook-run-registry.store.js");
const result = resolveHookRunRegistryPath(); const result = resolveHookRunRegistryPath();
expect(result).toContain("/mock/state"); // Use path.sep-agnostic check for cross-platform compatibility
expect(result).toMatch(/mock[\\/]state/);
expect(result).toContain("hook-runs.json"); expect(result).toContain("hook-runs.json");
}); });
}); });