title: How to set multiple environment variables in a single line on Windows?
body: <p>I'm working on a Node.js project and using <a href="https://jestjs.io/" rel="noreferrer">Jest</a> as the test framework.  This project runs on Windows as it happens, and I'm having a heck of a time setting more than one environment variable on the command line.</p>
  
  <p>Here's the relevant line in <code>package.json</code></p>
  
  <pre><code>  "scripts": {
       "test": "SET NODE_ENV=test &amp; SET DB_URI=postgresql://&lt;database stuff&gt;&gt; &amp; jest -t Suite1 --watch --verbose false"
    },
  </code></pre>
  
  <p>As can be seen above, I'm setting both a <code>NODE_ENV</code> and  <code>DB_URI</code> environment variable prior to running <code>jest</code> via <code>npm run test</code>.</p>
  
  <p>My problem is the that <code>DB_URI</code> environment variable doesn't appear to be set when jest runs.  The error I get back from jest makes it obvious it can't find it.  I do know that the first, <code>NODE_ENV</code> environment variable is set ok, but am not sure what's wrong with the second one, did I get the syntax wrong somehow?  Is anyone with jest experience on Windows doing something similar to what I'm trying?</p>