npm install --save-dev @testing-library/react @testing-library/jest-dom @testing-library/user-event Use code with caution.
const button = screen.getByRole('button', name: /off/i ); await user.click(button);
npm install --save-dev @testing-library/react @testing-library/jest-dom @testing-library/user-event Use code with caution.
const button = screen.getByRole('button', name: /off/i ); await user.click(button);