Skip to content

Commit fc9a820

Browse files
committed
fix: wrap useSearchParams in Suspense boundary for static build
1 parent d00dfdc commit fc9a820

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

app/customize/page.test.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ vi.mock('framer-motion', () => ({
3434
},
3535
}));
3636

37+
vi.mock('next/navigation', () => ({
38+
useRouter: () => ({
39+
replace: vi.fn(),
40+
}),
41+
useSearchParams: () => ({
42+
get: () => null,
43+
}),
44+
}));
45+
3746
vi.mock('@/components/InteractiveViewer', () => ({
3847
default: ({ children, ...props }: MockContainerProps) => <div {...props}>{children}</div>,
3948
}));

0 commit comments

Comments
 (0)