title: Testing plain javascript Vue components without Vue CLI
body: <p>Is it possible to test Vue components that were developped in plain javascript without a Vue CLI/Webpack/Babel setup?</p>
  <p>The documentation on the subjet I found so far on the Web is pretty slim :</p>
  <ul>
  <li><a href="https://github.com/vuejs/vue-test-utils/issues/1192" rel="nofollow noreferrer">https://github.com/vuejs/vue-test-utils/issues/1192</a></li>
  <li><a href="https://vue-test-utils.vuejs.org/installation/#running-vue-test-utils-without-a-build-step" rel="nofollow noreferrer">https://vue-test-utils.vuejs.org/installation/#running-vue-test-utils-without-a-build-step</a></li>
  <li><a href="https://stackoverflow.com/questions/55052983/how-to-test-plain-vue-components-not-single-file-components">How to test plain Vue components (not single file components)</a></li>
  </ul>
  <p>I installed Vue, Vue test utils, JSDOM</p>
  <p><strong>My package.json :</strong></p>
  <pre><code>{
    &quot;name&quot;: &quot;GuichetUnique.CMS&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;dependencies&quot;: {
      &quot;jest&quot;: &quot;^26.4.2&quot;,
      &quot;vue&quot;: &quot;^2.6.12&quot;,
      &quot;vue-template-compiler&quot;: &quot;^2.6.12&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@vue/test-utils&quot;: &quot;^1.0.5&quot;,
      &quot;jsdom&quot;: &quot;16.4.0&quot;,
      &quot;jsdom-global&quot;: &quot;3.0.2&quot;
    },
    &quot;scripts&quot;: {
      &quot;test&quot;: &quot;jest&quot;
    },
    &quot;keywords&quot;: [],
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;
  }
  </code></pre>
  <p>Jest is running fine with simple js functions but I haven't manage to test a Vue component.</p>
  <p><strong>The content of my test</strong></p>
  <pre><code>require('jsdom-global')();
  var testUtils = require('@vue/test-utils'), Vue = require('vue');
  
  testUtils.mount({ template: '&lt;div&gt;test&lt;/div&gt;' });
  </code></pre>
  <p><strong>The test result</strong></p>
  <pre><code>TypeError: Illegal invocation at removeEventListener (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:15)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/zzPDC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zzPDC.png" alt="enter image description here" /></a></p>
  <p>Please help !</p>