title: How do you find the filename and path of a running test in Jest
body: <p>I am using Jest for testing. How do I access the filename or file path of the current test being run?</p>
  <p>I need a conditional statement that runs different lines of code based on whether it is a unit test file or integration test file.</p>
  <p>Here is an example of what I am trying to achieve:</p>
  <pre><code>beforeAll(() =&gt; {
    if (integration_test_file){
      // run this this code 
  
    } else if (unit_test_file){
      // run this code instead 
    }
  })
  </code></pre>