test: narrow xai test helper imports · openclaw/openclaw@aa3a5f9
steipete
·
2026-04-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -import { withFetchPreconnect } from "openclaw/plugin-sdk/testing"; |
2 | 1 | import { afterEach, describe, expect, it, vi } from "vitest"; |
| 2 | +import { withFetchPreconnect } from "../../src/test-utils/fetch-mock.js"; |
3 | 3 | import { createCodeExecutionTool } from "./code-execution.js"; |
4 | 4 | |
5 | 5 | function installCodeExecutionFetch(payload?: Record<string, unknown>) { |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { NON_ENV_SECRETREF_MARKER } from "openclaw/plugin-sdk/provider-auth-runtime"; |
2 | 2 | import { createNonExitingRuntime } from "openclaw/plugin-sdk/runtime-env"; |
3 | | -import { withEnv, withEnvAsync } from "openclaw/plugin-sdk/testing"; |
4 | 3 | import { describe, expect, it, vi } from "vitest"; |
| 4 | +import { withEnv, withEnvAsync } from "../../src/test-utils/env.js"; |
5 | 5 | import { createWizardPrompter } from "../../test/helpers/wizard-prompter.js"; |
6 | 6 | import { resolveXaiCatalogEntry } from "./model-definitions.js"; |
7 | 7 | import { isModernXaiModel, resolveXaiForwardCompatModel } from "./provider-models.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -import { withFetchPreconnect } from "openclaw/plugin-sdk/testing"; |
2 | 1 | import { afterEach, describe, expect, it, vi } from "vitest"; |
| 2 | +import { withFetchPreconnect } from "../../src/test-utils/fetch-mock.js"; |
3 | 3 | import { createXSearchTool } from "./x-search.js"; |
4 | 4 | |
5 | 5 | function installXSearchFetch(payload?: Record<string, unknown>) { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。