|
|
|
@ -175,7 +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; |
|
|
|
} |
|
|
|
@ -193,9 +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, { |
|
|
|
@ -217,7 +217,7 @@ export class TestUserZeroAPI { |
|
|
|
refreshToken(): void { |
|
|
|
this.jwt = generateTestJWT(); |
|
|
|
|
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
|
|
|
|
console.log("🔄 JWT token refreshed"); |
|
|
|
} |
|
|
|
|
|
|
|
|