From a0313723715ea3f52798ef5d8bce81ee9a1f4fce Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Tue, 2 Oct 2018 00:31:38 +0100 Subject: [PATCH] Support globalSetup and globalTeardown Jest options --- packages/react-scripts/scripts/utils/createJestConfig.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-scripts/scripts/utils/createJestConfig.js b/packages/react-scripts/scripts/utils/createJestConfig.js index 040c1f58b6..6a6b84958d 100644 --- a/packages/react-scripts/scripts/utils/createJestConfig.js +++ b/packages/react-scripts/scripts/utils/createJestConfig.js @@ -68,6 +68,8 @@ module.exports = (resolve, rootDir, isEjecting) => { 'collectCoverageFrom', 'coverageReporters', 'coverageThreshold', + 'globalSetup', + 'globalTeardown', 'resetMocks', 'resetModules', 'snapshotSerializers',