How do I mock function in react-modal using Vitest?
I am writing a test for a module that uses react-modal to open a modal. React-modal requires that you set the root element for accessibility reasons.
I am writing a test for a module that uses react-modal to open a modal. React-modal requires that you set the root element for accessibility reasons.