test: bridge xai test helper imports

This commit is contained in:
Peter Steinberger
2026-04-24 13:18:21 +01:00
parent aa3a5f9ff7
commit 60f7a59f5e
5 changed files with 5 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/plugins/fetch-mock.js";
import { createCodeExecutionTool } from "./code-execution.js";
function installCodeExecutionFetch(payload?: Record<string, unknown>) {

View File

@@ -1,7 +1,7 @@
import { NON_ENV_SECRETREF_MARKER } from "openclaw/plugin-sdk/provider-auth-runtime";
import { createNonExitingRuntime } from "openclaw/plugin-sdk/runtime-env";
import { describe, expect, it, vi } from "vitest";
import { withEnv, withEnvAsync } from "../../src/test-utils/env.js";
import { withEnv, withEnvAsync } from "../../test/helpers/plugins/env.js";
import { createWizardPrompter } from "../../test/helpers/wizard-prompter.js";
import { resolveXaiCatalogEntry } from "./model-definitions.js";
import { isModernXaiModel, resolveXaiForwardCompatModel } from "./provider-models.js";

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/plugins/fetch-mock.js";
import { createXSearchTool } from "./x-search.js";
function installXSearchFetch(payload?: Record<string, unknown>) {

View File

@@ -0,0 +1 @@
export { withEnv, withEnvAsync } from "../../../src/test-utils/env.js";

View File

@@ -0,0 +1 @@
export { withFetchPreconnect, type FetchMock } from "../../../src/test-utils/fetch-mock.js";