title: Getting TestCafe to recognize dotenv variables
body: <p>I might be mixing up concepts, but <a href="https://devexpress.github.io/testcafe/documentation/recipes/access-environment-variables-in-tests.html" rel="nofollow noreferrer">I'd read that it's possible to get TestCafe to recognize variables</a> of the form <code>process.env.MY_COOL_VARIABLE</code>. Also for my Vue.js frontend (built using Vue-CLI, <a href="https://cli.vuejs.org/guide/mode-and-env.html#modes" rel="nofollow noreferrer">which uses dotenv under the hood</a>), I found I could make a file in <code>.env.test</code> for test values like so:</p>
  
  <pre><code>VUE_APP_MY_COOL_VARIABLE
  </code></pre>
  
  <p>which I would then access in my test code like so:</p>
  
  <pre><code>test('my fixture', async (t) =&gt; {
   ...
   await t
        .click(mySelector.find('.div').withText(process.env.VUE_APP_MY_COOL_VARIABLE));
   ...
  
  }
  </code></pre>
  
  <p>However, I get the following error:</p>
  
  <pre><code>"text" argument is expected to be a string or a regular expression, but it was undefined.
  </code></pre>
  
  <p>Seems like my environment variables aren't getting picked up. I build my code like so: <code>vue-cli-service build --mode test</code>.</p>