title: Is it possible to access a variable declared in wdio.conf?
body: <p>In the wdio.conf <code>onPrepare</code> I am storing all my feature file's in a array.</p>
  
  <pre><code>let listOfFiles = fs.readdirSync(process.cwd() + '/features');
  var featureFiles = [];
  
  listOfFiles.map((file) =&gt; {
      featureFiles.push(file)
  });
  </code></pre>
  
  <p>Is it possible to use the <code>featureFiles</code> array in another file?</p>
  
  <hr>
  
  <p>I want to generate an list of feature files during execution and assign it to the variable "featureFiles" (which is declared but has no value to begin with). 
  From what I've seen so far it's not possible to do this in wdio.conf as you will always get the value declared for your variable at the beginning.. which in my case is an empty array.</p>