/** @jest-environment jsdom */ import * as React from 'react'; import { render, RenderResult } from '@testing-library/react'; import { IconWrapper } from '../IconWrapper'; import { Icon } from '../index'; describe('IconWrapper', () => { let props: Icon; let wrapper: RenderResult; const createComponent = () => { wrapper = render(

Children in here

); }; beforeEach(() => { props = {}; createComponent(); }); it('matches snapshot', () => { expect(wrapper.container).toMatchSnapshot(); }); });