title: What babel or other settings do I need to run Mocha Test Explorer on a vue-cli-3 project?
body: <p>I've created a vue3 cli project with Mocha testing:</p>
  
  <pre><code>vue create vue_proj_with_mocha_testing 
  (accept defaults)
  cd vue_proj_with_mocha_testing
  vue add unit-mocha
  </code></pre>
  
  <p>Then in Visual Code I install the Mocha Test Explorer extension, restart, add the folder to the workspace, click the folder, ctrl-shift-p and Mocha Test Explorer : "Enable for a workspace folder". Out of the box Mocha Test Explorer doesn't seem to like vuecli's example.spec.js test:</p>
  
  <pre><code>import { expect } from 'chai'
  import { shallowMount } from '@vue/test-utils'
  import HelloWorld from '@/components/HelloWorld.vue'
  
  describe('HelloWorld.vue', () =&gt; {
    it('renders props.msg when passed', () =&gt; {
      const msg = 'new message'
      const wrapper = shallowMount(HelloWorld, {
        propsData: { msg }
      })
      expect(wrapper.text()).to.include(msg)
    })
  })
  </code></pre>
  
  <p>I add this entry to settings.json so that Test Explorer finds the vue "tests" folder, which is different from the default of "test".</p>
  
  <pre><code>"mochaExplorer.files": ["tests/**/*.spec.js"],
  </code></pre>
  
  <p>And then receive this error in Test Explorer:</p>
  
  <pre><code>import { expect } from 'chai';
  ^^^^^^
  
  SyntaxError: Cannot use import statement outside a module
  </code></pre>
  
  <p>This indicates I have some transpiling work to do, and Mocha Test Explorer indicates the way to do that is the "mochaTestExplorer" fields in settings.json, but I'm not sure what combination of babel packages would be required.  What should be done to run this out-of-the-box vue-cli-3 test in Mocha Test Explorer in Visual Studio Code?  Here is my current guess:</p>
  
  <pre><code>"mochaExplorer.require": [
      "@babel/preset-env",
      "@babel/register", 
      "@babel/polyfill",
      "@babel/plugin-transform-runtime"
  ],
  </code></pre>