test(agents): fix tsgo typing regressions

This commit is contained in:
Vincent Koc
2026-04-12 17:00:33 +01:00
parent 3bb69edf58
commit d46f684898
2 changed files with 3 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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: {