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
Post a Comment