test: reuse verbose directive reply imports

This commit is contained in:
Peter Steinberger
2026-04-08 20:30:59 +01:00
parent 1d1763caa4
commit ab46010caa

View File

@@ -1,5 +1,5 @@
import "./reply.directive.directive-behavior.e2e-mocks.js";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { beforeAll, describe, expect, it } from "vitest";
import type { OpenClawConfig } from "../config/config.js";
import { loadSessionStore } from "../config/sessions.js";
import {
@@ -126,8 +126,7 @@ function makeCommandMessage(body: string, from = "+1222") {
describe("directive behavior", () => {
installDirectiveBehaviorE2EHooks();
beforeEach(async () => {
vi.resetModules();
beforeAll(async () => {
({ getReplyFromConfig } = await import("./reply.js"));
});