fix(xai): repair extension test boundaries

This commit is contained in:
Peter Steinberger 2026-03-28 19:51:29 +00:00
parent 1e424990a2
commit dba1b31243
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import { withFetchPreconnect } from "../../src/test-utils/fetch-mock.js";
import { withFetchPreconnect } from "../../test/helpers/extensions/fetch-mock.js";
import { createXSearchTool } from "./x-search.js";
function installXSearchFetch(payload?: Record<string, unknown>) {

View File

@ -1,6 +1,6 @@
import { afterAll, afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { OpenClawConfig } from "../config/config.js";
import type { RuntimeWebFirecrawlMetadata } from "../secrets/runtime-web-tools.types.js";
import type { RuntimeWebFetchFirecrawlMetadata } from "../secrets/runtime-web-tools.types.js";
import type { RuntimeWebSearchMetadata } from "../secrets/runtime-web-tools.types.js";
import { withFetchPreconnect } from "../test-utils/fetch-mock.js";
@ -126,7 +126,7 @@ function requireWebSearchTool(config: OpenClawConfig, runtimeWebSearch?: Runtime
function requireWebFetchTool(
config: OpenClawConfig,
runtimeFirecrawl?: RuntimeWebFirecrawlMetadata,
runtimeFirecrawl?: RuntimeWebFetchFirecrawlMetadata,
) {
const tool = createWebFetchTool({
config,