How to test a component rendered using React.createportal?
I am using jest and react testing library. While i am trying to render the component i am not able to test it. Can you guys tell me the correct method to do it. it("Render PopUp Properly", () => { const props = { setIsOpen: jest.fn(), children: <div>Test</div>, }; const {getByTestId}= render(<Popup isOpen={true} {…props} />);… Read More How to test a component rendered using React.createportal?