diff --git a/src/agents/bash-tools.exec.script-preflight.test.ts b/src/agents/bash-tools.exec.script-preflight.test.ts index d031f8e1e78..ecc70e774ec 100644 --- a/src/agents/bash-tools.exec.script-preflight.test.ts +++ b/src/agents/bash-tools.exec.script-preflight.test.ts @@ -30,7 +30,7 @@ async function expectSymlinkSwapDuringPreflightToAvoidErrors(params: { let swapped = false; __setFsSafeTestHooksForTest({ - [params.hookName]: async (target) => { + [params.hookName]: async (target: string) => { if (swapped || path.resolve(target) !== scriptRealPath) { return; } diff --git a/src/agents/model-auth.profiles.test.ts b/src/agents/model-auth.profiles.test.ts index a828501ec3f..1d3f72fca6b 100644 --- a/src/agents/model-auth.profiles.test.ts +++ b/src/agents/model-auth.profiles.test.ts @@ -3,6 +3,7 @@ import os from "node:os"; import path from "node:path"; import type { Api, Model } from "@mariozechner/pi-ai"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; +import type { OpenClawConfig } from "../config/types.openclaw.js"; import { withEnvAsync } from "../test-utils/env.js"; import { clearRuntimeAuthProfileStoreSnapshots, ensureAuthProfileStore } from "./auth-profiles.js"; import { @@ -147,7 +148,7 @@ function buildOllamaStore(keys: string[]) { }; } -function buildOllamaProviderCfg(apiKey: string) { +function buildOllamaProviderCfg(apiKey: string): OpenClawConfig { return { models: { providers: {