title: How to exclude test files from the vite build command?
body: <p>I am using Vite with a Typescript React project. I have jest tests in my project as well.</p>
  <p>When I run <code>vite build</code> it seems to be compiling and bundling my test files? I have some stubbed out tests that I plan to get to with some compiling errors right now.</p>
  <p>Example when I run <code>yarn build</code> which has <code>tsc &amp;&amp; vite build</code></p>
  <pre><code>&gt; yarn build
  yarn run v1.22.17
  warning package.json: No license field
  $ tsc &amp;&amp; vite build
  src/core/utils/numberUtils.spec.ts:1:1 - error TS1208: 'numberUtils.spec.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
  
  1 describe('numberUtils - ', () =&gt; {
    ~~~~~~~~
  
  
  Found 1 error.
  
  error Command failed with exit code 2.
  info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  </code></pre>
  <p><strong>How do I force Vite to ignore and not bundle these test files?</strong></p>