/** * This test was generated */ import * as React from 'react'; import { render } from '@testing-library/react'; import { ClipboardCopy } from '../../ClipboardCopy'; // any missing imports can usually be resolved by adding them here import {} from '../..'; it('ClipboardCopy should match snapshot (auto-generated)', () => { const { asFragment } = render( , text?: React.ReactNode) => { const clipboard = event.currentTarget.parentElement; const el = document.createElement('input'); el.value = text.toString(); clipboard.appendChild(el); el.select(); document.execCommand('copy'); clipboard.removeChild(el); }} onChange={(): any => undefined} children={
ReactNode
} /> ); expect(asFragment()).toMatchSnapshot(); });