test: fix rebase-introduced tsgo regressions

This commit is contained in:
Brian Mendonca
2026-02-21 15:56:38 -07:00
committed by Peter Steinberger
parent 1357e02cff
commit 21087c5c70
4 changed files with 1 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
import { describe, expect, it } from "vitest";
import type { OpenClawConfig } from "./config.js";
import { migrateLegacyConfig, validateConfigObject } from "./config.js";
import type { OpenClawConfig } from "./config.js";
function getLegacyRouting(config: unknown) {
return (config as { routing?: Record<string, unknown> } | undefined)?.routing;

View File

@@ -25,7 +25,6 @@ import {
resolveSafeBins,
type ExecApprovalsAgent,
type ExecAllowlistEntry,
type ExecApprovalsAgent,
type ExecApprovalsFile,
} from "./exec-approvals.js";
import { SAFE_BIN_PROFILE_FIXTURES, SAFE_BIN_PROFILES } from "./exec-safe-bin-policy.js";

View File

@@ -4,7 +4,6 @@ import path from "node:path";
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import { HEARTBEAT_PROMPT } from "../auto-reply/heartbeat.js";
import * as replyModule from "../auto-reply/reply.js";
import type { ReplyPayload } from "../auto-reply/types.js";
import { whatsappOutbound } from "../channels/plugins/outbound/whatsapp.js";
import type { OpenClawConfig } from "../config/config.js";
import {
@@ -21,7 +20,6 @@ import {
type HeartbeatDeps,
resolveHeartbeatIntervalMs,
resolveHeartbeatPrompt,
type HeartbeatDeps,
runHeartbeatOnce,
} from "./heartbeat-runner.js";
import {

View File

@@ -604,7 +604,7 @@ describe("sendMessageTelegram", () => {
...("replyToMessageId" in testCase.options
? { replyToMessageId: testCase.options.replyToMessageId }
: {}),
...("buttons" in testCase.options
...(Array.isArray(testCase.options.buttons)
? {
buttons: testCase.options.buttons.map((row) => row.map((button) => ({ ...button }))),
}