fix(web): suppress lint for never-resolving promise in test
All checks were successful
ci/woodpecker/push/web Pipeline was successful

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-23 18:44:52 -06:00
parent c694db5d8c
commit 315b04e1b2

View File

@@ -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(<DashboardPage />);