mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:10:49 +00:00
test: bridge xai test helper imports
This commit is contained in:
@@ -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>) {
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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>) {
|
||||
|
||||
1
test/helpers/plugins/env.ts
Normal file
1
test/helpers/plugins/env.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { withEnv, withEnvAsync } from "../../../src/test-utils/env.js";
|
||||
1
test/helpers/plugins/fetch-mock.ts
Normal file
1
test/helpers/plugins/fetch-mock.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { withFetchPreconnect, type FetchMock } from "../../../src/test-utils/fetch-mock.js";
|
||||
Reference in New Issue
Block a user