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

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -