79134195

Date: 2024-10-28 16:09:03
Score: 2.5
Natty:
Report link

Have you tried to set your buttons onClick event to call the mock function?

const { getByLabelText } = renderWithProviders(<SoundBtn onClick={preventDefaultSpy} />);
Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Qyden