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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -