Open akbar-pyt opened 5 years ago
Thrown this error when run the test case if i am using component inside react-slick.
import React, { Component } from 'react'; import Slider from 'react-slick'; Class MyComponent extends Component { render() { return( <Slider> <div>Test1</div> <div>Test2</div> <div>Test3</div> </Slider> ) } }
Test Case
it('Example', () => { const renderedValue = renderer .create(<MyComponent/>) .toJSON(); expect(renderedValue).toMatchSnapshot(); });
If i run the test case it shown the following error, Invariant Violation: Unable to find node on an unmounted component.
This issue will happen only when i add the div elements inside the slider alone. Can any one give some suggestion to resolve this?
I have the same issue
Hello community! Have you found a fix for this? I have the same problem as well.
Thank you.
Same problem! Anyone get the solution?
Thrown this error when run the test case if i am using component inside react-slick.
Test Case
If i run the test case it shown the following error, Invariant Violation: Unable to find node on an unmounted component.
This issue will happen only when i add the div elements inside the slider alone. Can any one give some suggestion to resolve this?