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
This commit is contained in:
Matthew Raymer
2025-10-27 11:34:26 +00:00
parent 66987093f7
commit b724eb716f
2 changed files with 6 additions and 9 deletions

View File

@@ -175,8 +175,7 @@ export class TestUserZeroAPI {
): Promise<typeof MOCK_STARRED_PROJECTS_RESPONSE> {
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");
}

View File

@@ -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'}`)
})