fix(web): suppress lint for never-resolving promise in test
All checks were successful
ci/woodpecker/push/web Pipeline was successful
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:
@@ -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 />);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user