how to check a link if it works react code example
Example: jest expect href
expect(getByText('Click Me').closest('a')).toHaveAttribute('href', 'https://www.test.com/')
expect(getByText('Click Me').closest('a')).toHaveAttribute('href', 'https://www.test.com/')