fix: restore main ci type checks

This commit is contained in:
Peter Steinberger
2026-04-06 05:36:24 +01:00
parent 319217a30d
commit b62badd8a3
12 changed files with 51 additions and 35 deletions

View File

@@ -5,8 +5,8 @@ import {
setConfigValueAtPath,
unsetConfigValueAtPath,
} from "./config-paths.js";
import { validateConfigObject } from "./config.js";
import { buildWebSearchProviderConfig } from "./test-helpers.js";
import { readConfigFileSnapshot, validateConfigObject } from "./config.js";
import { buildWebSearchProviderConfig, withTempHome, writeOpenClawConfig } from "./test-helpers.js";
import { OpenClawSchema } from "./zod-schema.js";
describe("$schema key in config (#14998)", () => {

View File

@@ -1,4 +1,6 @@
import { describe, expect, it } from "vitest";
import { migrateLegacyConfig } from "../commands/doctor/shared/legacy-config-migrate.js";
import type { OpenClawConfig } from "./config.js";
import { validateConfigObject } from "./validation.js";
function getChannelConfig(config: unknown, provider: string) {
@@ -234,7 +236,9 @@ describe("legacy config detection", () => {
{
name: "streamMode with streaming boolean",
input: { channels: { discord: { streaming: false, streamMode: "block" } } },
expectedChanges: ["Moved channels.discord.streamMode → channels.discord.streaming.mode (block)."],
expectedChanges: [
"Moved channels.discord.streamMode → channels.discord.streaming.mode (block).",
],
expectedStreaming: "block",
},
] as const)(