(is_async?: boolean)
| 341 | |
| 342 | test("async validation multiple errors 2", async () => { |
| 343 | const base = (is_async?: boolean) => |
| 344 | z.object({ |
| 345 | hello: z.string(), |
| 346 | foo: z.object({ |
| 347 | bar: z.number().refine(is_async ? async () => false : () => false), |
| 348 | }), |
| 349 | }); |
| 350 | |
| 351 | const testval = { hello: 3, foo: { bar: 4 } }; |
| 352 | const result1 = base().safeParse(testval); |
no test coverage detected