refactor: replace console.log with debug utility in tests#494
Conversation
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
View your CI Pipeline Execution ↗ for commit 897b1eb
☁️ Nx Cloud last updated this comment at |
Merge activity
|
# Reduce Test Verbosity with Conditional Debug Logging This PR introduces a debug logging utility to reduce console noise during test runs while preserving the ability to see detailed logs when needed. Key changes: - Added a new `debug.ts` helper with a `log()` function that only outputs when `DEBUG=1` or `VERBOSE=1` environment variables are set - Replaced all `console.log()` calls in E2E tests with the new `log()` function - Updated the global setup script to use the same logging pattern - Simplified the global setup output to show only essential information by default This change makes test output cleaner and more focused on actual test results while maintaining the ability to see detailed logs when debugging by running tests with `DEBUG=1`.
03a8ea3 to
f9bfb15
Compare
4e15458 to
897b1eb
Compare
🚀 Production Deployment: Website✅ Successfully deployed to production! 🔗 Production URL: https://pgflow.dev 📝 Details:
Deployed at: 2025-12-03T17:24:42Z |

Reduce Test Verbosity with Conditional Debug Logging
This PR introduces a debug logging utility to reduce console noise during test runs while preserving the ability to see detailed logs when needed. Key changes:
debug.tshelper with alog()function that only outputs whenDEBUG=1orVERBOSE=1environment variables are setconsole.log()calls in E2E tests with the newlog()functionThis change makes test output cleaner and more focused on actual test results while maintaining the ability to see detailed logs when debugging by running tests with
DEBUG=1.