import { render, screen } from '@testing-library/react'; import { RouterContext } from 'next/dist/shared/lib/router-context'; import { NextRouter } from 'next/router'; import { ReactElement } from 'react'; import { Footer } from './Footer'; import { githubUrl } from './utils'; const withTestRouter = (tree: ReactElement, router: Partial = {}) => ( {tree} ); describe('Footer', () => { test('displays default links', () => { const router = { pathname: '/example/' }; render(withTestRouter(