react-testing query 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/')