chore: Fix types in tests 42/N.

This commit is contained in:
cpojer
2026-02-17 15:48:29 +09:00
parent 6264c5e842
commit 7d2ef131c1
24 changed files with 133 additions and 39 deletions

View File

@@ -1,4 +1,5 @@
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import type { OpenClawConfig } from "../config/config.js";
import { createTempHomeHarness, makeReplyConfig } from "./reply.test-harness.js";
const agentMocks = vi.hoisted(() => ({
@@ -70,7 +71,11 @@ describe("RawBody directive parsing", () => {
CommandAuthorized: true,
};
const res = await getReplyFromConfig(groupMessageCtx, {}, makeReplyConfig(home));
const res = await getReplyFromConfig(
groupMessageCtx,
{},
makeReplyConfig(home) as OpenClawConfig,
);
const text = Array.isArray(res) ? res[0]?.text : res?.text;
expect(text).toBe("ok");