mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-04 00:16:50 +02:00
test(extensions): avoid barrel testing helpers in media tests
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
|
||||
import { sanitizeTerminalText } from "openclaw/plugin-sdk/testing";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { sanitizeTerminalText } from "../../../../src/terminal/safe-text.js";
|
||||
import {
|
||||
describeIMessageEchoDropLog,
|
||||
resolveIMessageInboundDecision,
|
||||
|
||||
@@ -2,8 +2,8 @@ import * as ssrf from "openclaw/plugin-sdk/infra-runtime";
|
||||
import * as mediaFetch from "openclaw/plugin-sdk/media-runtime";
|
||||
import type { SavedMedia } from "openclaw/plugin-sdk/media-runtime";
|
||||
import * as mediaStore from "openclaw/plugin-sdk/media-runtime";
|
||||
import { mockPinnedHostnameResolution } from "openclaw/plugin-sdk/testing";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { mockPinnedHostnameResolution } from "../../../../src/test-helpers/ssrf.js";
|
||||
import {
|
||||
type FetchMock,
|
||||
withFetchPreconnect,
|
||||
|
||||
@@ -4,9 +4,9 @@ import path from "node:path";
|
||||
import { optimizeImageToPng } from "openclaw/plugin-sdk/media-runtime";
|
||||
import { resolveStateDir } from "openclaw/plugin-sdk/state-paths";
|
||||
import { resolvePreferredOpenClawTmpDir } from "openclaw/plugin-sdk/temp-path";
|
||||
import { mockPinnedHostnameResolution } from "openclaw/plugin-sdk/testing";
|
||||
import sharp from "sharp";
|
||||
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { mockPinnedHostnameResolution } from "../../../src/test-helpers/ssrf.js";
|
||||
import { captureEnv } from "../../../test/helpers/plugins/env.js";
|
||||
import { sendVoiceMessageDiscord } from "../../discord/src/send.js";
|
||||
import {
|
||||
|
||||
Reference in New Issue
Block a user