import React from 'react'; import { shallow, mount } from 'enzyme'; import useDebouncedCallback from '../index'; const Test: React.FC = (props) => { const [debouncedCallback] = useDebouncedCallback(() => { console.log(6666); }, 500); return (
) } test('custom test', () => { const wrapper = shallow(); });