suppressTestLogs function
void
suppressTestLogs()
Suppresses all framework logs during tests.
Called automatically when using TestContext or TestClient. Call this manually in setUpAll() if not using those utilities.
Example:
import 'package:chase/testing/testing.dart';
void main() {
setUpAll(() => suppressTestLogs());
// ...tests...
}
Implementation
void suppressTestLogs() {
if (!_logsSuppressed) {
LogConfig.global = _SilentLogger();
_logsSuppressed = true;
}
}