test(config): isolate codex web schema acceptance · openclaw/openclaw@6c4ecd8
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { describe, expect, it } from "vitest"; |
2 | 2 | import { validateConfigObjectRaw } from "./validation.js"; |
3 | | -import { OpenClawSchema } from "./zod-schema.js"; |
4 | 3 | |
5 | 4 | describe("web search Codex native config validation", () => { |
6 | | -it("accepts tools.web.search.openaiCodex", () => { |
7 | | -const result = OpenClawSchema.safeParse({ |
| 5 | +it("accepts tools.web.search.openaiCodex", async () => { |
| 6 | +const { OpenClawSchema: freshOpenClawSchema } = |
| 7 | +await import("./zod-schema.js?scope=web-search-codex"); |
| 8 | +const result = freshOpenClawSchema.safeParse({ |
8 | 9 | tools: { |
9 | 10 | web: { |
10 | 11 | search: { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。