import * as React from 'react'; import StatisticsWidget from '..'; import { statisticsWidgetTestkitFactory } from '../../../testkit'; import { statisticsWidgetTestkitFactory as statisticsWidgetEnzymeTestkitFactory } from '../../../testkit/enzyme'; import { statisticsWidgetTestkitFactory as statisticsWidgetPuppeteerTestkitFactory } from '../../../testkit/puppeteer'; import * as enzyme from 'enzyme'; import * as puppeteer from 'puppeteer'; function StatisticsWidgetWithMandatoryProps() { return ; } function StatisticsWidgetWithAllProps() { return ( {}, children:
Child
}, ]} /> ); } async function testkits() { const testkit = statisticsWidgetTestkitFactory({ dataHook: 'hook', wrapper: document.createElement('div'), }); const enzymeTestkit = statisticsWidgetEnzymeTestkitFactory({ dataHook: 'hook', wrapper: enzyme.mount(
), }); const browser = await puppeteer.launch(); const page = await browser.newPage(); const puppeteerTestkit = await statisticsWidgetPuppeteerTestkitFactory({ dataHook: 'hook', page, }); }