import Router from 'next/router' const actionWithPromise = (): Promise => new Promise((_, reject) => reject()) const actionWithPromiseVoid = (): Promise => new Promise((_, reject) => reject()) // eslint-disable-next-line // @ts-ignore Router.router = { push: actionWithPromise, replace: actionWithPromise, prefetch: actionWithPromiseVoid, route: '/mock-route', pathname: 'mock-path' }