mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 14:40:22 +00:00
fix: restore main ci type checks
This commit is contained in:
@@ -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)", () => {
|
||||
|
||||
@@ -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)(
|
||||
|
||||
Reference in New Issue
Block a user