From b724eb716fdd623a16eb1db1d9822a4d53fa67b0 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Mon, 27 Oct 2025 11:34:26 +0000 Subject: [PATCH] fix(test-app): add ESLint suppressions for console statements - Add eslint-disable-next-line no-console comments for development console statements - Resolve all linting warnings in test-user-zero.ts and router/index.ts - Maintain clean code quality while allowing debugging output --- .../src/config/test-user-zero.ts | 11 ++++------- test-apps/daily-notification-test/src/router/index.ts | 4 ++-- 2 files changed, 6 insertions(+), 9 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 8339155..4cfee32 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 @@ -175,8 +175,7 @@ export class TestUserZeroAPI { ): Promise { if (TEST_USER_ZERO_CONFIG.testing.enableMockResponses) { // Return mock data for offline testing - - + // eslint-disable-next-line no-console console.log("๐Ÿงช Using mock starred projects response"); return MOCK_STARRED_PROJECTS_RESPONSE; } @@ -194,11 +193,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, { @@ -220,7 +217,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'}`) })