import * as React from 'react'; import { mount } from 'enzyme'; import Image from '..'; import { imageTestkitFactory } from '../../../testkit'; import { imageTestkitFactory as imageEnzymeTestkitFactory } from '../../../testkit/enzyme'; async function testkits() { const vanilla = imageTestkitFactory({ dataHook: 'test', wrapper: document.createElement('div'), }); await vanilla.exists(); await vanilla.element(); await vanilla.click(); const enzyme = imageEnzymeTestkitFactory({ dataHook: 'test', wrapper: mount(
), }); await enzyme.exists(); await enzyme.element(); await enzyme.click(); } function ImageWithMandatoryProps() { return ; } function ImageWithAllProps() { return ( ); }