From 4166cc2f5378a56bf99c29fe7500f57c4bc9a62a Mon Sep 17 00:00:00 2001 From: Aftab Khan Date: Wed, 10 Jan 2018 00:09:43 +0530 Subject: [PATCH] Prevent logging all the JSDOM internal errors. Closes #5266 --- packages/jest-environment-jsdom/src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/jest-environment-jsdom/src/index.js b/packages/jest-environment-jsdom/src/index.js index b6acdc4d4ab5..4753593f0203 100644 --- a/packages/jest-environment-jsdom/src/index.js +++ b/packages/jest-environment-jsdom/src/index.js @@ -33,6 +33,7 @@ class JSDOMEnvironment { url: config.testURL, virtualConsole: new VirtualConsole().sendTo( options.console || console, + { omitJSDOMErrors: true }, ), }, config.testEnvironmentOptions,