From 14c0a7965e7a23da679c244a6abfb03541663c50 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Fri, 19 Nov 2021 03:59:55 -0800 Subject: [PATCH] Don't print debug logs in jest Summary: Don't print console.debug logs during unit tests These diffs together reduce the amounts of logs printed during unit tests from 6000 to 3000. Reviewed By: passy Differential Revision: D32557595 fbshipit-source-id: eef2b742157f16638d9ce270cf8b3d8d0f4e2952 --- desktop/scripts/jest-setup-after.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop/scripts/jest-setup-after.js b/desktop/scripts/jest-setup-after.js index 1771b6aae..5434cd999 100644 --- a/desktop/scripts/jest-setup-after.js +++ b/desktop/scripts/jest-setup-after.js @@ -34,3 +34,7 @@ test.unix = function local() { }; afterEach(cleanup); + +console.debug = function () { + // Intentional noop, we don't want debug statements in Jest runs +};