fix: 修复 vitest 迁移后测试失败 #65
Reference in New Issue
Block a user
Delete Branch "fix/64-test-failures"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
修复 vitest 迁移后 26 个失败测试,达到 617/617 全过。
Why
PR #63 迁移 bun:test → vitest 后,部分测试因 API 差异失败。
Changes
schema-validation.test.ts/liquid-render.test.ts— async 函数断言从.toThrow()改为await .rejects.toThrow()(vitest 不像 bun:test 对 async 做特殊处理)runCli函数从execFileSync("tsx")改为execFileSync("node")edge-cases/gc/pipe/render.test.ts— 函数签名从 rest params...args: string[]改为 arrayargs: string[],修复参数被 join 成逗号分隔字符串的问题Result
36/36 files pass, 617/617 tests pass ✅
Ref
Fixes #64