title: Babel 7 Jest Core JS "TypeError: wks is not a function"
body: <p>After upgrading my project to Babel 7, running tests through Jest is throwing the following error. The tests used to run without any issues in Babel 6, but they are failing in Babel 7 with the following error</p>
  <pre><code>TypeError: wks is not a function
  
    at Object.&lt;anonymous&gt;.module.exports (node_modules/core-js/modules/_fix-re-wks.js:16:16)
    at Object.&lt;anonymous&gt; (node_modules/core-js/modules/es6.regexp.replace.js:4:25)
    at Object.&lt;anonymous&gt; (node_modules/core-js/modules/es6.regexp.split.js:3:1)
    at Object.&lt;anonymous&gt; (node_modules/core-js/modules/es6.symbol.js:7:1)
    at Object.&lt;anonymous&gt; (node_modules/core-js/modules/_is-object.js:5:1)
    at Object.&lt;anonymous&gt; (node_modules/core-js/modules/_inherit-if-required.js:3:16)
    at Object.&lt;anonymous&gt; (node_modules/core-js/modules/es6.regexp.constructor.js:5:25)
    at Object.&lt;anonymous&gt; (node_modules/core-js/modules/es6.regexp.match.js:3:1)
    at Object.&lt;anonymous&gt; (node_modules/core-js/modules/es6.function.name.js:3:1)
    at Object.&lt;anonymous&gt; (node_modules/core-js/modules/_wks.js:3:1)
    at Object.&lt;anonymous&gt; (node_modules/core-js/modules/_add-to-unscopables.js:4:19)
    at Object.&lt;anonymous&gt; (node_modules/core-js/modules/es6.array.iterator.js:3:24)
    at Object.&lt;anonymous&gt; (node_modules/core-js/modules/web.dom.iterable.js:3:18)
    at Object.&lt;anonymous&gt; (node_modules/regenerator-runtime/runtime.js:3:1)
  </code></pre>
  <h3>Jest configuration</h3>
  <pre><code>{
  &quot;unmockedModulePathPatterns&quot;: [
    &quot;&lt;rootDir&gt;/node_modules/react&quot;,
    &quot;&lt;rootDir&gt;/node_modules/react-dom&quot;,
    &quot;&lt;rootDir&gt;/node_modules/react-addons-test-utils&quot;,
    &quot;&lt;rootDir&gt;/node_modules/fbjs&quot;,
    &quot;enzyme&quot;
  ],
  &quot;roots&quot;: [
    &quot;&lt;rootDir&gt;/__tests__&quot;
  ],
  &quot;transformIgnorePatterns&quot;: [
    &quot;node_modules/(^generic-)/i&quot;, //a module matching this is throwing an error
    &quot;node_modules/react-infinite-scroller&quot;
  ],
  &quot;setupFiles&quot;: [
    &quot;./jestsetup.js&quot;
  ],
  &quot;snapshotSerializers&quot;: [
    &quot;enzyme-to-json/serializer&quot;
  ],
  &quot;testResultsProcessor&quot;: &quot;./jestTrxProcessor&quot;,
  &quot;verbose&quot;: true
    }
  </code></pre>
  <h3>File <em>babel.js.config</em></h3>
  <pre><code>{
  &quot;presets&quot;: [
      [
          &quot;@babel/preset-env&quot;,
          {
              &quot;targets&quot;: {
                  &quot;ie&quot;: 11
              },
              &quot;useBuiltIns&quot;: &quot;usage&quot;
          }
      ],
      &quot;@babel/preset-react&quot;
  ],
  &quot;plugins&quot;: [
      &quot;@babel/plugin-transform-runtime&quot;,
      &quot;@babel/plugin-syntax-dynamic-import&quot;,
      &quot;@babel/plugin-syntax-import-meta&quot;,
      &quot;@babel/plugin-proposal-class-properties&quot;,
      &quot;@babel/plugin-proposal-json-strings&quot;,
      [
          &quot;@babel/plugin-proposal-decorators&quot;,
          {
              &quot;legacy&quot;: true
          }
      ],
      &quot;@babel/plugin-proposal-function-sent&quot;,
      &quot;@babel/plugin-proposal-export-namespace-from&quot;,
      &quot;@babel/plugin-proposal-numeric-separator&quot;,
      &quot;@babel/plugin-proposal-throw-expressions&quot;,
      &quot;@babel/plugin-proposal-object-rest-spread&quot;,
      &quot;@babel/plugin-transform-object-assign&quot;
      ]
  }
  </code></pre>
  <h3>File <em>package.json</em></h3>
  <pre><code>&quot;devDependencies&quot;: {
      &quot;@babel/cli&quot;: &quot;^7.0.0&quot;,
      &quot;@babel/core&quot;: &quot;^7.0.1&quot;,
      &quot;@babel/plugin-proposal-class-properties&quot;: &quot;^7.0.0&quot;,
      &quot;@babel/plugin-proposal-decorators&quot;: &quot;^7.0.0&quot;,
      &quot;@babel/plugin-proposal-export-namespace-from&quot;: &quot;^7.0.0&quot;,
      &quot;@babel/plugin-proposal-function-sent&quot;: &quot;^7.0.0&quot;,
      &quot;@babel/plugin-proposal-json-strings&quot;: &quot;^7.0.0&quot;,
      &quot;@babel/plugin-proposal-numeric-separator&quot;: &quot;^7.0.0&quot;,
      &quot;@babel/plugin-proposal-object-rest-spread&quot;: &quot;^7.0.0&quot;,
      &quot;@babel/plugin-proposal-throw-expressions&quot;: &quot;^7.0.0&quot;,
      &quot;@babel/plugin-syntax-dynamic-import&quot;: &quot;^7.0.0&quot;,
      &quot;@babel/plugin-syntax-import-meta&quot;: &quot;^7.0.0&quot;,
      &quot;@babel/plugin-transform-object-assign&quot;: &quot;^7.0.0&quot;,
      &quot;@babel/preset-env&quot;: &quot;^7.0.0&quot;,
      &quot;@babel/preset-react&quot;: &quot;^7.0.0&quot;,
      &quot;babel-core&quot;: &quot;7.0.0-bridge.0&quot;,
      &quot;babel-loader&quot;: &quot;^8.0.0&quot;,
      &quot;body-parser&quot;: &quot;^1.18.3&quot;,
      &quot;create-if-not-exist&quot;: &quot;^0.0.2&quot;,
      &quot;enzyme&quot;: &quot;^3.3.0&quot;,
      &quot;enzyme-adapter-react-16&quot;: &quot;^1.1.1&quot;,
      &quot;enzyme-to-json&quot;: &quot;^3.3.1&quot;,
      &quot;eslint&quot;: &quot;^4.13.1&quot;,
      &quot;eslint-config-airbnb&quot;: &quot;^16.1.0&quot;,
      &quot;eslint-config-defaults&quot;: &quot;^9.0.0&quot;,
      &quot;eslint-config-rallycoding&quot;: &quot;^3.2.0&quot;,
      &quot;eslint-plugin-import&quot;: &quot;^2.7.0&quot;,
      &quot;eslint-plugin-jsx-a11y&quot;: &quot;^6.0.2&quot;,
      &quot;eslint-plugin-react&quot;: &quot;^7.4.0&quot;,
      &quot;exports-loader&quot;: &quot;0.6.4&quot;,
      &quot;express&quot;: &quot;^4.16.3&quot;,
      &quot;generic-redux-root&quot;: &quot;^0.0.1&quot;,
      &quot;imports-loader&quot;: &quot;0.7.1&quot;,
      &quot;jasmine&quot;: &quot;^2.8.0&quot;,
      &quot;jest&quot;: &quot;^23.4.1&quot;,
      &quot;jest-cli&quot;: &quot;^23.4.1&quot;,
      &quot;jest-trx-results-processor&quot;: &quot;^0.0.7&quot;,
      &quot;redux-mock-store&quot;: &quot;^1.5.1&quot;,
      &quot;string-replace-webpack-plugin&quot;: &quot;^0.1.3&quot;,
      &quot;webpack&quot;: &quot;^4.5.0&quot;,
      &quot;webpack-cli&quot;: &quot;^2.0.12&quot;,
      &quot;webpack-dev-server&quot;: &quot;^3.1.1&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@babel/polyfill&quot;: &quot;^7.0.0&quot;,
      &quot;babel-jest&quot;: &quot;^23.6.0&quot;,
      &quot;babel-plugin-add-module-exports&quot;: &quot;^0.2.1&quot;,
      &quot;core-js&quot;: &quot;^2.5.5&quot;,
      &quot;draft-js&quot;: &quot;^0.10.5&quot;,
      &quot;es6-promise&quot;: &quot;^3.3.1&quot;,
      &quot;flux&quot;: &quot;^3.1.3&quot;,
      &quot;generic-api-fetch&quot;: &quot;1.0.1&quot;,
      &quot;generic-http&quot;: &quot;^1.0.2&quot;,
      &quot;generic-limited-textarea&quot;: &quot;^1.1.0&quot;,
      &quot;generic-select&quot;: &quot;^1.0.3&quot;,
      &quot;generic-throttled-select&quot;: &quot;^1.0.3&quot;,
      &quot;lodash&quot;: &quot;4.17.4&quot;,
      &quot;moment&quot;: &quot;^2.22.2&quot;,
      &quot;prop-types&quot;: &quot;^15.6.2&quot;,
      &quot;react&quot;: &quot;16.2.0&quot;,
      &quot;react-addons-update&quot;: &quot;15.6.2&quot;,
      &quot;react-datepicker&quot;: &quot;^1.5.0&quot;,
      &quot;react-dom&quot;: &quot;16.2.0&quot;,
      &quot;react-hot-loader&quot;: &quot;3.1.3&quot;,
      &quot;react-infinite-scroller&quot;: &quot;^1.2.0&quot;,
      &quot;react-redux&quot;: &quot;5.0.6&quot;,
      &quot;react-select&quot;: &quot;1.1.0&quot;,
      &quot;redux&quot;: &quot;3.7.2&quot;,
      &quot;redux-logger&quot;: &quot;3.0.6&quot;,
      &quot;redux-thunk&quot;: &quot;2.2.0&quot;,
      &quot;reselect&quot;: &quot;3.0.1&quot;,
      &quot;whatwg-fetch&quot;: &quot;^2.0.4&quot;
    }
  </code></pre>
  <p>What am I doing wrong?</p>