diff --git a/tests/useWatch.test.tsx b/tests/useWatch.test.tsx index a52005db..86be6cdb 100644 --- a/tests/useWatch.test.tsx +++ b/tests/useWatch.test.tsx @@ -397,7 +397,7 @@ describe('useWatch', () => { it('first undefined', () => { const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); const Demo: React.FC = () => { - const formRef = useRef(null); + const formRef = useRef(undefined); const name = Form.useWatch('name', formRef.current); const [, setUpdate] = useState({}); return (