chore(tests): remove obsolete API_KEY references from test suite#70
Conversation
- Remove API_KEY export and env.API_KEY from e2e-setup.ts - Remove X-API-Key headers from 3 E2E tests and 8 integration tests - Remove authHeaders() function from tests/helpers/api.ts - Auth middleware now demo mode (no-op), making API key checks dead code All 184 unit tests, integration tests, and E2E tests pass.
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
User description
All 184 unit tests, integration tests, and E2E tests pass.
PR Type
Tests
Description
Remove API_KEY export from e2e-setup.ts and all test files
Remove X-API-Key headers from 11 E2E and integration tests
Remove authHeaders() helper function from tests/helpers/api.ts
Auth middleware now operates in demo mode, eliminating API key checks
Diagram Walkthrough
File Walkthrough
13 files
Remove API_KEY import and header usageRemove API_KEY import and header usageRemove API_KEY import and header usageRemove API_KEY environment variable and exportRemove authHeaders() helper functionRemove API_KEY constant and header usageRemove API_KEY constant and header usageRemove API_KEY constant and header usageRemove API_KEY constant and header usageRemove API_KEY constant and header usageRemove API_KEY constant and header usageRemove API_KEY constant and header usageRemove API_KEY constant and header usage