react test href 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/')