import React from 'react' ; import { render } from '@testUtils' ; import ProductCollection , { ProductCollectionProps } from './ProductCollection' ; describe ( 'ProductCollection' , ( ) => { const defaultProps = { size : 10 , headline : 'mock headline' , keywords : 'keyword-1,keyword-2' , description : 'mock description' , } ; it ( 'renders correctly' , ( ) => { const { container : { firstChild } , } = render ( < ProductCollection { ... defaultProps } / > ) ; expect ( firstChild ) . toMatchSnapshot ( ) ; } ) ; } ) ;