mirror of https://github.com/openclaw/openclaw.git
test: trim telegram testing barrel imports
This commit is contained in:
parent
de1d0f4fae
commit
afa78a5b13
|
|
@ -2,7 +2,6 @@ import fs from "node:fs/promises";
|
|||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
|
||||
import { writeSkill } from "openclaw/plugin-sdk/testing";
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
import { registerTelegramNativeCommands } from "./bot-native-commands.js";
|
||||
import {
|
||||
|
|
@ -12,6 +11,7 @@ import {
|
|||
waitForRegisteredCommands,
|
||||
} from "./bot-native-commands.menu-test-support.js";
|
||||
import { pluginCommandMocks, resetPluginCommandMocks } from "./test-support/plugin-command.js";
|
||||
import { writeSkill } from "./test-support/write-skill.js";
|
||||
|
||||
const tempDirs: string[] = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import {
|
|||
clearPluginInteractiveHandlers,
|
||||
registerPluginInteractiveHandler,
|
||||
} from "openclaw/plugin-sdk/plugin-runtime";
|
||||
import { expectChannelInboundContextContract as expectInboundContextContract } from "openclaw/plugin-sdk/testing";
|
||||
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { escapeRegExp, formatEnvelopeTimestamp } from "../../../test/helpers/envelope-timestamp.js";
|
||||
import { expectChannelInboundContextContract as expectInboundContextContract } from "./test-support/inbound-context-contract.js";
|
||||
const {
|
||||
answerCallbackQuerySpy,
|
||||
commandSpy,
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
export { expectChannelInboundContextContract } from "../../../../src/channels/plugins/contracts/suites.js";
|
||||
|
|
@ -0,0 +1 @@
|
|||
export { writeSkill } from "../../../../src/agents/skills.e2e-test-helpers.js";
|
||||
Loading…
Reference in New Issue