Commit 00cc671
refactor(query-graphql): improve console.log mock implementation in integration tests
- Replace global console.log override with jest.spyOn() for safer mocking
- Use mockRestore() instead of manual restoration for better cleanup
- Remove unnecessary originalLog variable declaration
- Keep optional debug output comment for development flexibility
This addresses the code review feedback about avoiding global console.log override
which could interfere with test output and debugging while following Jest best practices.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5888637 commit 00cc671
File tree
1 file changed
+4
-6
lines changed- packages/query-graphql/__tests__/integration/federation-n1
1 file changed
+4
-6
lines changedLines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
203 | 202 | | |
204 | 203 | | |
205 | 204 | | |
206 | | - | |
207 | | - | |
| 205 | + | |
208 | 206 | | |
209 | 207 | | |
210 | | - | |
211 | | - | |
| 208 | + | |
| 209 | + | |
212 | 210 | | |
213 | 211 | | |
214 | 212 | | |
| |||
223 | 221 | | |
224 | 222 | | |
225 | 223 | | |
226 | | - | |
| 224 | + | |
227 | 225 | | |
228 | 226 | | |
229 | 227 | | |
| |||
0 commit comments