DEV Community

Discussion on: Testing a Semantic UI React Input with React Testing Library

Collapse
 
instinct profile image
Instinct

Okay, I did that the following way:

jest.mock("semantic-ui-react", () => {
    const ui = jest.requireActual("semantic-ui-react");
    return { ...ui };
})
Enter fullscreen mode Exit fullscreen mode