79559488

Date: 2025-04-07 09:31:11
Score: 0.5
Natty:
Report link

If you don't want to add data-client-id, you can do this instead :

const { baseElement } = render(<MyModal {...myTestProps} />);
expect(baseElement).toMatchSnapshot();

baseElement represents document.body. Documentation here.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: MLD