mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-02 03:24:57 +00:00
* refactor: replace sharp image backend with photon * refactor: remove whatsapp jimp dependency * chore: remove stale sharp install workarounds * test: keep image fixtures off photon * test: use valid prompt image fixtures * test: account for optimized PNG fixtures * test: use valid minimax image fixtures
51 lines
1.7 KiB
TypeScript
51 lines
1.7 KiB
TypeScript
// Focused public test helpers for generic fixtures shared by plugin tests.
|
|
|
|
export {
|
|
createCliRuntimeCapture,
|
|
firstWrittenJsonArg,
|
|
spyRuntimeErrors,
|
|
spyRuntimeJson,
|
|
spyRuntimeLogs,
|
|
} from "../cli/test-runtime-capture.js";
|
|
export type { CliMockOutputRuntime, CliRuntimeCapture } from "../cli/test-runtime-capture.js";
|
|
export { createSandboxTestContext } from "../agents/sandbox/test-fixtures.js";
|
|
export {
|
|
createSandboxBrowserConfig,
|
|
createSandboxPruneConfig,
|
|
createSandboxSshConfig,
|
|
} from "./test-helpers/sandbox-fixtures.js";
|
|
export { writeSkill } from "../agents/skills.e2e-test-helpers.js";
|
|
export {
|
|
castAgentMessage,
|
|
makeAgentAssistantMessage,
|
|
makeAgentUserMessage,
|
|
} from "../agents/test-helpers/agent-message-fixtures.js";
|
|
export { peekSystemEvents, resetSystemEventsForTest } from "../infra/system-events.js";
|
|
export { sanitizeTerminalText } from "../terminal/safe-text.js";
|
|
export { countLines, hasBalancedFences } from "../test-utils/chunk-test-helpers.js";
|
|
export { expectGeneratedTokenPersistedToGatewayAuth } from "../test-utils/auth-token-assertions.js";
|
|
export { typedCases } from "../test-utils/typed-cases.js";
|
|
export {
|
|
BUNDLED_PLUGIN_PATH_PREFIX,
|
|
BUNDLED_PLUGIN_ROOT_DIR,
|
|
BUNDLED_PLUGIN_TEST_GLOB,
|
|
bundledDistPluginFile,
|
|
bundledDistPluginFileAt,
|
|
bundledDistPluginRoot,
|
|
bundledDistPluginRootAt,
|
|
bundledPluginDirPrefix,
|
|
bundledPluginFile,
|
|
bundledPluginFileAt,
|
|
bundledPluginRoot,
|
|
bundledPluginRootAt,
|
|
installedPluginRoot,
|
|
repoInstallSpec,
|
|
} from "./test-helpers/bundled-plugin-paths.js";
|
|
export { importFreshModule } from "./test-helpers/import-fresh.js";
|
|
export {
|
|
createGrayscaleAlphaPngBuffer,
|
|
createNoisyPngBuffer,
|
|
createNoisyRgbaBuffer,
|
|
createSolidPngBuffer,
|
|
} from "./test-helpers/image-fixtures.js";
|