mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 00:14:34 +00:00
chore: Fix types in tests 18/N.
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user