Skip to content

Commit 0880f91

Browse files
committed
Type check in tests
1 parent 1576ab4 commit 0880f91

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tests/superValidate.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,10 @@ describe('Zod 4', () => {
10951095
message: 'Name is not OK'
10961096
});
10971097

1098-
const form = await superValidate({ name: 'Test' }, zod4(schema));
1098+
// Check if issue #626 is fixed
1099+
type Validated = SuperValidated<Infer<typeof schema>>;
1100+
1101+
const form: Validated = await superValidate({ name: 'Test' }, zod4(schema));
10991102

11001103
expect(form.errors).toEqual({
11011104
_errors: ['Name is not OK']

0 commit comments

Comments
 (0)