chore: Fix types in tests 18/N.

This commit is contained in:
cpojer
2026-02-17 12:00:18 +09:00
parent 43c97d18aa
commit 8ece8215aa
8 changed files with 67 additions and 41 deletions

View File

@@ -9,18 +9,19 @@ function createPrompter(confirmValue = false) {
}
function createDeps() {
return {
const deps: NonNullable<Parameters<typeof setupOnboardingShellCompletion>[0]["deps"]> = {
resolveCliName: () => "openclaw",
checkShellCompletionStatus: vi.fn(async () => ({
shell: "zsh",
checkShellCompletionStatus: vi.fn(async (_binName: string) => ({
shell: "zsh" as const,
profileInstalled: false,
cacheExists: false,
cachePath: "/tmp/openclaw.zsh",
usesSlowPattern: false,
})),
ensureCompletionCacheExists: vi.fn(async () => true),
ensureCompletionCacheExists: vi.fn(async (_binName: string) => true),
installCompletion: vi.fn(async () => {}),
};
return deps;
}
describe("setupOnboardingShellCompletion", () => {