Skip to content

Commit

Permalink
bugfix/jest-config-require-wizard-polyfill (#24)
Browse files Browse the repository at this point in the history
* bugfix/jest-config-require-wizard-polyfill

* update version
  • Loading branch information
wangkailang authored and fezhengjin committed Jan 14, 2019
1 parent 24bdc40 commit 07b9969
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-scripts/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-scripts/scripts/utils/createJestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 07b9969

Please sign in to comment.