diff --git a/apps/web/src/app/(authenticated)/page.test.tsx b/apps/web/src/app/(authenticated)/page.test.tsx index 528ec61..11bb891 100644 --- a/apps/web/src/app/(authenticated)/page.test.tsx +++ b/apps/web/src/app/(authenticated)/page.test.tsx @@ -94,7 +94,11 @@ describe("DashboardPage", (): void => { }); it("should show loading spinner initially", (): void => { - vi.mocked(layoutsApi.fetchDefaultLayout).mockReturnValue(new Promise(() => {})); + // Never-resolving promise to test loading state + vi.mocked(layoutsApi.fetchDefaultLayout).mockReturnValue( + // eslint-disable-next-line @typescript-eslint/no-empty-function -- intentionally never-resolving + new Promise(() => {}) + ); render();