title: Loading a test .env file in jest
body: <p>I'm trying to run snapshot tests on a react project with jest using a local .env file, but I can't figure out how to get jest to recognize it.</p>
  
  <p>so far I've tried:</p>
  
  <ul>
  <li>adding <code>dotenv.config({path: 'path/to/.env'});</code> in jest.setup.js</li>
  <li>running jest with -env='path/to/.env' in the cli adding</li>
  <li>testEnvironment: 'path/to/.env' in the jest.config.js</li>
  </ul>
  
  <p>is this functionality supported? Any help would be appreciated</p>