title: Run jest got "Unexpected string" at ScriptTransformer._transformAndBuildScript
body: <p>In Vuejs project, 
  node version: v10.6.0</p>
  
  <p>Package.json version: </p>
  
  <pre><code> "devDependencies": {
      "@vue/cli-plugin-babel": "^3.0.0-rc.4",
      "@vue/cli-plugin-unit-jest": "^3.0.0-rc.4",
      "@vue/cli-service": "^3.0.0-rc.4",
      "@vue/test-utils": "^1.0.0-beta.20",
      "babel-core": "7.0.0-bridge.0",
      "babel-jest": "^23.0.1",
      "vue-template-compiler": "^2.5.16"
    },
  </code></pre>
  
  <p>When I run it with build in tasks, </p>
  
  <pre><code>"test:unit": "vue-cli-service test:unit"
  </code></pre>
  
  <p>But as I want to debug, so I run manually with node command:</p>
  
  <pre><code>node  node_modules/.bin/jest
  </code></pre>
  
  <p>It gives following error:</p>
  
  <pre><code> FAIL  tests/unit/HelloWorld1.spec.js
    ● Test suite failed to run
  
      .../tests/unit/HelloWorld1.spec.js:1
      ({"Object.&lt;anonymous&gt;":function(module,exports,require,__dirname,__filename,global,jest){import "core-js/modules/es6.array.iterator";
                                                                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  
      SyntaxError: Unexpected string
  
        at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:403:17)
  </code></pre>
  
  <p>After I added .babelrc with following content</p>
  
  <pre><code>{"env": {
      "development": {
          "plugins": ["transform-es2015-modules-commonjs"]
      },
      "test": {
          "plugins": ["transform-es2015-modules-commonjs"]
      }
  }}
  </code></pre>
  
  <p>Things got a little better, It can pass the the test file without "import", once there's import, it will show a different error:</p>
  
  <pre><code>....tests/unit/HelloWorld1.spec.js:3
      import _interopRequireWildcard from "..../node_modules/@babel/runtime/helpers/builtin/es6/interopRequireWildcard";
             ^^^^^^^^^^^^^^^^^^^^^^^
  
      SyntaxError: Unexpected identifier
  
        at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:403:17)
  </code></pre>