import { UISref, UIView } from '@uirouter/react'; import { render, screen } from '@testing-library/react'; import { withTestRouter } from '@/react/test-utils/withRouter'; function RelativePathLink() { return ( Link ); } test.todo('should render a link with relative path', () => { const WrappedComponent = withTestRouter(RelativePathLink, { stateConfig: [ { name: 'parent', url: '/', component: () => ( <>
parent
), }, { name: 'parent.custom', url: 'custom', }, ], route: 'parent', }); render(); expect(screen.getByText('Link')).toBeInTheDocument(); });