chore: Fix types in tests 31/N.

This commit is contained in:
cpojer
2026-02-17 14:33:26 +09:00
parent f2f17bafbc
commit 116f5afea3
12 changed files with 185 additions and 85 deletions

View File

@@ -19,8 +19,11 @@ describe("ensureSkillsWatcher", () => {
mod.ensureSkillsWatcher({ workspaceDir: "/tmp/workspace" });
expect(watchMock).toHaveBeenCalledTimes(1);
const targets = watchMock.mock.calls[0]?.[0] as string[];
const opts = watchMock.mock.calls[0]?.[1] as { ignored?: unknown };
const firstCall = (
watchMock.mock.calls as unknown as Array<[string[], { ignored?: unknown }]>
)[0];
const targets = firstCall?.[0] ?? [];
const opts = firstCall?.[1] ?? {};
expect(opts.ignored).toBe(mod.DEFAULT_SKILLS_WATCH_IGNORED);
const posix = (p: string) => p.replaceAll("\\", "/");