шутка ожидает href
expect(getByText('Click Me').closest('a')).toHaveAttribute('href', 'https://www.test.com/')
thecameroncobb
expect(getByText('Click Me').closest('a')).toHaveAttribute('href', 'https://www.test.com/')