steviewonders3

Results comments of steviewonders3

`jest.spyOn` works for me too - ```ts import React from 'react' import { render } from '@testing-library/react' import ResultsProductPage from 'pages/results/[product]' const useRouter = jest.spyOn(require('next/router'), 'useRouter') describe('ResultsProductPage', () => {...

@MrDestroii I have a fix for this, I'll PR once I get a test written

I'd like to reopen this issue @kitten, I'm experiencing the same problem. `withRouter` works fine, `useRouter` does not. The `pageProps` always resolves correctly on the first pass, but it looks...

@DavoCg @kitten ~I managed to fix it, I don't know how good of a fix this is but it makes sense to me - I just wrapped the App passed...