Files
wehub-resource-sync 3a28426bf4
Lint and Format Check / lint-and-format (push) Failing after 0s
Check Migrations / Check for duplicate migration numbers (push) Failing after 1s
CI Pre-merge Check / CI Pre-merge Check (push) Failing after 2m17s
chore: import upstream snapshot with attribution
2026-07-13 12:23:40 +08:00

10 lines
338 B
TypeScript

import { describe, expect, it } from 'vitest';
import { z } from 'zod';
import { parseZodSchema } from '../../src/utils/zod';
describe('zod utils', () => {
it('formats root-level validation issues with an explicit path', () => {
expect(() => parseZodSchema(z.string().min(1), '')).toThrow('(root): String must contain');
});
});