From 07b9969e1da2f28fff7e29ac141626c1c355cebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BC=80=E6=9C=97?= Date: Mon, 14 Jan 2019 16:08:11 +0800 Subject: [PATCH] bugfix/jest-config-require-wizard-polyfill (#24) * bugfix/jest-config-require-wizard-polyfill * update version --- packages/react-scripts/package.json | 2 +- packages/react-scripts/scripts/utils/createJestConfig.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 1c3718729a3..23aead15914 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -1,6 +1,6 @@ { "name": "react-scripts-wizard", - "version": "2.1.1-5", + "version": "2.1.1-6", "description": "Configuration and scripts for Create React App.", "repository": "xsky-fe/create-react-app-wizard", "license": "MIT", diff --git a/packages/react-scripts/scripts/utils/createJestConfig.js b/packages/react-scripts/scripts/utils/createJestConfig.js index 70c1e5f49f0..6a0989fe82a 100644 --- a/packages/react-scripts/scripts/utils/createJestConfig.js +++ b/packages/react-scripts/scripts/utils/createJestConfig.js @@ -36,8 +36,8 @@ module.exports = (resolve, rootDir, isEjecting) => { : require.resolve('jest-pnp-resolver'), setupFiles: [ isEjecting - ? 'react-app-polyfill/jsdom' - : require.resolve('react-app-polyfill/jsdom'), + ? 'react-app-polyfill-wizard/jsdom' + : require.resolve('react-app-polyfill-wizard/jsdom'), ], setupTestFrameworkScriptFile: setupTestsFile,