import React from 'react' ; import { jsx as JSX } from '@emotion/core' ; import renderer from 'react-test-renderer' ; import { StyledApp , THEME_ID } from '../Layout' ; export const matchComponent = ( component , themeId = THEME_ID . LIGHT ) => ( expect as any ) ( renderer . create ( < StyledApp themeId = { themeId } > { component } < /StyledApp>).toJSON()).toMatchSnapshot();