title: Run E2E tests in IDE or command line
body: <p>I'm using Stencil.js to create a web component library and I'm heavily relying on E2E tests. As they're rather slow it becomes more and more cumbersome to run the entire test suite (using the Stencil.js CLI) while developing new components.</p>
  
  <p>However, I'm not able to run single tests in my IDE (IntelliJ IDEA) or via command line. It works perfectly fine for unit tests though.</p>
  
  <p>My Jest config looks like this: </p>
  
  <pre><code>module.exports = {
    "roots": [
      "&lt;rootDir&gt;/src"
    ],
    "preset": "@stencil/core/testing"
  }
  </code></pre>
  
  <p>When I try to run tests in a single file (<code>jest --config jest.config.js --testPathPattern src/components/button/button.e2e.ts$</code>)</p>
  
  <p>it fails, because </p>
  
  <blockquote>
    <p>newE2EPage() is only available from E2E tests, and ran with the --e2e cmd line flag.</p>
  </blockquote>
  
  <p>newE2EPage() comes with Stencil.js and I don't know what Stencil.js's CLI does in the background. Furthermore, I cloned the Stencil.js repository, just to see if it is working with their E2E tests (<a href="https://github.com/ionic-team/stencil/tree/master/test/end-to-end" rel="nofollow noreferrer">https://github.com/ionic-team/stencil/tree/master/test/end-to-end</a>) but it doesn't work either.</p>
  
  <p>Any idea how I can configure Jest so that it's able to run Stencil.js-E2E tests from the command line?</p>