From 315b04e1b24a0c92bd253599efe270b8a0ad3b38 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Mon, 23 Feb 2026 18:44:52 -0600 Subject: [PATCH] fix(web): suppress lint for never-resolving promise in test Co-Authored-By: Claude Opus 4.6 --- apps/web/src/app/(authenticated)/page.test.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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();