import * as React from 'react'; import StyledNestableList from '..'; import { styledNestableListTestkitFactory } from '../../../testkit'; import { styledNestableListTestkitFactory as styledNestableListEnzymeTestkitFactory } from '../../../testkit/enzyme'; import { styledNestableListTestkitFactory as styledNestableListPuppeteerTestkitFactory } from '../../../testkit/puppeteer'; import * as enzyme from 'enzyme'; import * as puppeteer from 'puppeteer'; function styledNestableListWithMandatoryProps() { return ( ); } function styledNestableListWithAllProps() { return ( { // eslint-disable-next-line no-console console.log(data); }} onAddItem={data => { // eslint-disable-next-line no-console console.log(data); }} /> ); } async function testkits() { const testkit = styledNestableListTestkitFactory({ dataHook: 'hook', wrapper: document.createElement('div'), }); const enzymeTestkit = styledNestableListEnzymeTestkitFactory({ dataHook: 'hook', wrapper: enzyme.mount(
), }); const browser = await puppeteer.launch(); const page = await browser.newPage(); const puppeteerTestkit = await styledNestableListPuppeteerTestkitFactory({ dataHook: 'hook', page, }); }