score:0

import mockRouter from "next-router-mock";
describe('tests', () => {
  it('changes the url', () => {
    mockRouter.setCurrentUrl("/pizza");
  })
})

Related Query

More Query from same tag