From 17792e4dea5b2667fb67d8dcf1e87c1b422a85e8 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Fri, 31 Oct 2025 10:17:28 +0000 Subject: [PATCH] fix(lint): suppress console statement warnings in test app Add eslint-disable-next-line comments for intentional console.log statements in test configuration and router files. These console statements are intentional for debugging and testing purposes. Files updated: - test-user-zero.ts: 5 console statements suppressed - router/index.ts: 2 console statements suppressed All lint warnings resolved. --- .../src/config/test-user-zero.ts | 10 +++++----- test-apps/daily-notification-test/src/router/index.ts | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test-apps/daily-notification-test/src/config/test-user-zero.ts b/test-apps/daily-notification-test/src/config/test-user-zero.ts index 74413d4..6d8554f 100644 --- a/test-apps/daily-notification-test/src/config/test-user-zero.ts +++ b/test-apps/daily-notification-test/src/config/test-user-zero.ts @@ -313,7 +313,7 @@ export class TestUserZeroAPI { */ setBaseUrl(url: string): void { this.baseUrl = url; - + // eslint-disable-next-line no-console console.log("๐Ÿ”ง API base URL updated to:", url); } @@ -331,7 +331,7 @@ export class TestUserZeroAPI { if (useMock) { // Return mock data for offline testing - + // eslint-disable-next-line no-console console.log("๐Ÿงช Using mock starred projects response"); return MOCK_STARRED_PROJECTS_RESPONSE; } @@ -350,9 +350,9 @@ export class TestUserZeroAPI { afterId: afterId || TEST_USER_ZERO_CONFIG.starredProjects.lastAckedJwtId }; - + // eslint-disable-next-line no-console console.log("๐ŸŒ Making real API call to:", url); - + // eslint-disable-next-line no-console console.log("๐Ÿ“ฆ Request body:", requestBody); const response = await fetch(url, { @@ -373,7 +373,7 @@ export class TestUserZeroAPI { */ refreshToken(): void { this.jwt = generateTestJWT(); - + // eslint-disable-next-line no-console console.log("๐Ÿ”„ JWT token refreshed"); } diff --git a/test-apps/daily-notification-test/src/router/index.ts b/test-apps/daily-notification-test/src/router/index.ts index b06dd1e..d8d2b6c 100644 --- a/test-apps/daily-notification-test/src/router/index.ts +++ b/test-apps/daily-notification-test/src/router/index.ts @@ -105,7 +105,7 @@ router.beforeEach((to, from, next) => { } // Add loading state - + // eslint-disable-next-line no-console console.log(`๐Ÿ”„ Navigating from ${String(from.name) || 'unknown'} to ${String(to.name) || 'unknown'}`) next() @@ -113,7 +113,7 @@ router.beforeEach((to, from, next) => { router.afterEach((to) => { // Clear any previous errors on successful navigation - + // eslint-disable-next-line no-console console.log(`โœ… Navigation completed: ${String(to.name) || 'unknown'}`) })