bereaksi pengujian untuk tautan
expect(screen.getByText('Click Me').closest('a')).toHaveAttribute('href', 'https://www.test.com/')
Davidosky
expect(screen.getByText('Click Me').closest('a')).toHaveAttribute('href', 'https://www.test.com/')