fix(tests): repair test regressions from zod v3 downgrade

- Fix zod/v4 imports in background-task schema tests
- Remove ZWSP prefix from agent-key-remapper test (fixed in #3136)
- Use toMatchObject for openai-only catalog tests (fallback_models added by #3144)
- Replace z.toJSONSchema (zod v4) with zodToJsonSchema (zod v3 compat)
- Fix task-list.ts type narrowing for zod v3 inferred types
This commit is contained in:
YeonGyu-Kim
2026-04-06 14:43:19 +09:00
parent 4659f14ce3
commit bd723b5163
5 changed files with 10 additions and 10 deletions
@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test"
import { ZodError } from "zod/v4"
import { ZodError } from "zod"
import { BackgroundTaskConfigSchema } from "./background-task"
describe("BackgroundTaskConfigSchema.circuitBreaker", () => {
+1 -1
View File
@@ -1,5 +1,5 @@
import { describe, expect, test } from "bun:test"
import { ZodError } from "zod/v4"
import { ZodError } from "zod"
import { BackgroundTaskConfigSchema } from "./background-task"
describe("BackgroundTaskConfigSchema", () => {