This commit is contained in:
parent
e5867e6f73
commit
4ae32c4f3b
3 changed files with 275 additions and 4 deletions
|
|
@ -4,7 +4,8 @@ const redirect = mock((path: string) => {
|
|||
throw new Error(`NEXT_REDIRECT:${path}`);
|
||||
});
|
||||
|
||||
mock.module("next/navigation", () => ({ redirect }));
|
||||
mock.module("next/navigation", () => ({ default: { redirect }, redirect }));
|
||||
mock.module("next/navigation.js", () => ({ default: { redirect }, redirect }));
|
||||
|
||||
describe("legacy page redirects", () => {
|
||||
beforeEach(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue