mirror of https://github.com/openclaw/openclaw.git
test: trim more auto-reply partial mocks
This commit is contained in:
parent
489a62e788
commit
c8c0aeda76
|
|
@ -100,9 +100,10 @@ vi.mock("../../config/sessions.js", async () => {
|
|||
};
|
||||
});
|
||||
|
||||
vi.mock("../../infra/outbound/session-binding-service.js", async (importOriginal) => {
|
||||
const actual =
|
||||
await importOriginal<typeof import("../../infra/outbound/session-binding-service.js")>();
|
||||
vi.mock("../../infra/outbound/session-binding-service.js", async () => {
|
||||
const actual = await vi.importActual<
|
||||
typeof import("../../infra/outbound/session-binding-service.js")
|
||||
>("../../infra/outbound/session-binding-service.js");
|
||||
const patched = { ...actual } as typeof actual & {
|
||||
getSessionBindingService: () => ReturnType<typeof createAcpCommandSessionBindingService>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ const hookRunnerMocks = vi.hoisted(() => ({
|
|||
runBeforeReset: vi.fn<HookRunner["runBeforeReset"]>(),
|
||||
}));
|
||||
|
||||
vi.mock("node:fs/promises", async (importOriginal) => {
|
||||
const actual = await importOriginal<typeof import("node:fs/promises")>();
|
||||
vi.mock("node:fs/promises", async () => {
|
||||
const actual = await vi.importActual<typeof import("node:fs/promises")>("node:fs/promises");
|
||||
return {
|
||||
...actual,
|
||||
default: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue