import * as React from 'react' ; import { createShallowRenderedComponent } from '@client/tests/util' ; import { PerformanceSelect } from './PerformanceSelect' ; describe ( 'PerformanceSelect tests' , ( ) => { it ( 'shallow rendered component matches snapshot' , ( ) => { const shallowPerformanceSelect = createShallowRenderedComponent ( < PerformanceSelect value = "OPTION1" options = { [ { label : 'Option 1' , value : 'OPTION1' } , { label : 'Option 2' , value : 'OPTION2' , type : 'TYPE' } ] } / > ) ; expect ( shallowPerformanceSelect ) . toMatchSnapshot ( ) ; } ) ; } ) ;