stabilize forgejo ci bun path and mocks
Some checks failed
CI / Validate (push) Failing after 1m7s

This commit is contained in:
dirtydishes 2026-05-30 01:44:45 -04:00
parent e5867e6f73
commit 4ae32c4f3b
3 changed files with 275 additions and 4 deletions

View file

@ -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(() => {