chore: add useWatch test placeholder

This commit is contained in:
zombiej 2022-04-25 11:20:56 +08:00
parent 6a08a46ecc
commit c85d9889ab

View File

@ -85,4 +85,16 @@ describe('Form.typescript', () => {
expect(Demo).toBeTruthy();
});
// TODO: @crazyair fix for value types
it('useWatch', () => {
const Demo = () => {
const [form] = Form.useForm<FormValues>();
const value = Form.useWatch('username', form);
return <Form form={form}>{value}</Form>;
};
expect(Demo).toBeTruthy();
});
});