test(extensions): use direct helper seams in provider tests

This commit is contained in:
Vincent Koc
2026-04-03 21:35:43 +09:00
parent a05daaa832
commit 0ca2a91213
4 changed files with 7 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
import { describe, expect, it } from "vitest";
import {
createRequestCaptureJsonFetch,
installPinnedHostnameTestHooks,
} from "openclaw/plugin-sdk/testing";
import { describe, expect, it } from "vitest";
} from "../../src/media-understanding/audio.test-helpers.ts";
import { mistralMediaUnderstandingProvider } from "./media-understanding-provider.js";
installPinnedHostnameTestHooks();

View File

@@ -1,8 +1,8 @@
import { describe, expect, it } from "vitest";
import {
createRequestCaptureJsonFetch,
installPinnedHostnameTestHooks,
} from "openclaw/plugin-sdk/testing";
import { describe, expect, it } from "vitest";
} from "../../src/media-understanding/audio.test-helpers.ts";
import { describeMoonshotVideo } from "./media-understanding-provider.js";
installPinnedHostnameTestHooks();

View File

@@ -1,9 +1,9 @@
import { describe, expect, it } from "vitest";
import {
createAuthCaptureJsonFetch,
createRequestCaptureJsonFetch,
installPinnedHostnameTestHooks,
} from "openclaw/plugin-sdk/testing";
import { describe, expect, it } from "vitest";
} from "../../src/media-understanding/audio.test-helpers.ts";
import { transcribeOpenAiAudio } from "./media-understanding-provider.js";
installPinnedHostnameTestHooks();

View File

@@ -1,7 +1,7 @@
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import type { MsgContext } from "openclaw/plugin-sdk/reply-runtime";
import { buildDispatchInboundCaptureMock } from "openclaw/plugin-sdk/testing";
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import { buildDispatchInboundCaptureMock } from "../../../../src/channels/plugins/contracts/inbound-testkit.js";
type SignalMsgContext = Pick<MsgContext, "Body" | "WasMentioned"> & {
Body?: string;