reactjs - jest not creating snapshot -


i have created jest test file below.but snapshot file not created. issue in code?

import react 'react'; import carousel './component'; import renderer 'react-test-renderer';  test('carousel component test suite', () => {  const component = renderer.create(     <carousel        /> );  let tree = component.tojson(); expect(tree).tomatchsnapshot();  }); 


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -