mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:10:45 +00:00
test(agents): fix tsgo typing regressions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user