how do you add test cases to the link using jestenzyme?

Here Link will render based on the SearchLink props. As you are passing it as true, it wont be available in the DOM. Pass SearchLink=false and execute the unit tests.

describe('Error Msg', () => {
       it('styled component', () => {
       const output = mount(<DisplayErr text="hello world" SearchLink=false/>)

Let me know if you are facing the same issue.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top