diff --git a/src/tests/superValidate.test.ts b/src/tests/superValidate.test.ts index 184ca9aa..9034ab17 100644 --- a/src/tests/superValidate.test.ts +++ b/src/tests/superValidate.test.ts @@ -262,6 +262,21 @@ describe('Valibot', () => { expect(() => valibot(schema)).not.toThrow(); }); + /* + it('should work with FormPathLeaves and brand', async () => { + const schema = v.object({ id: v.brand(v.string(), 'Id') }); + type T = Infer; + type IdSchema = { id: string & v.Brand<"Id"> }; + // ^? { id: string & Brand<"Id"> } + + const a: FormPathLeaves = 'id'; + // @ts-expect-error Should handle brand + const b: FormPathLeaves = 'id.length'; + a; + b; + }); + */ + /* it('should have the correct Input and Output types', () => { const logSchema = v.object({ id: v.nullish(v.string(), ''),