mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 23:24:30 +00:00
test(auto-reply): import reply after harness mocks
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import fs from "node:fs/promises";
|
||||
import { join } from "node:path";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { beforeAll, describe, expect, it } from "vitest";
|
||||
import { loadSessionStore } from "../config/sessions.js";
|
||||
import { getReplyFromConfig } from "./reply.js";
|
||||
import {
|
||||
getAbortEmbeddedPiRunMock,
|
||||
getRunEmbeddedPiAgentMock,
|
||||
@@ -13,6 +12,11 @@ import {
|
||||
} from "./reply.triggers.trigger-handling.test-harness.js";
|
||||
import { enqueueFollowupRun, getFollowupQueueDepth, type FollowupRun } from "./reply/queue.js";
|
||||
|
||||
let getReplyFromConfig: typeof import("./reply.js").getReplyFromConfig;
|
||||
beforeAll(async () => {
|
||||
({ getReplyFromConfig } = await import("./reply.js"));
|
||||
});
|
||||
|
||||
installTriggerHandlingE2eTestHooks();
|
||||
|
||||
describe("trigger handling", () => {
|
||||
|
||||
Reference in New Issue
Block a user