title: Jest configuration setupFilesAfterEnv option was not found
body: <p>I'm trying to make Jest work again on a project developped 1 year ago and not maintained.</p>
  <p>I have an error with path of <code>setupFilesAfterEnv</code>or <code>transform</code>.</p>
  <ul>
  <li><p>the error i get when i run &quot;yarn test&quot;</p>
  <pre><code>$ jest __testsv2__ --config=./jest.config.js
  ● Validation Error:
  
  Module &lt;rootDir&gt;/jest/setup.js in the setupFilesAfterEnv option was not found.
         &lt;rootDir&gt; is: /Users/alain/dev/ddf/release
  
  Configuration Documentation:
  https://jestjs.io/docs/configuration.html
  
  error Command failed with exit code 1.
  </code></pre>
  </li>
  <li><p>my filesystem, in /Users/alain/dev/ddf/release/ i have</p>
  <pre><code>  babel.config.js
    jest.config.js
    /jest
      /setup
      setup.js ( so  full path is : /Users/alain/dev/ddf/release/jest/setup.js ) 
      staticFileAssetTransform.js ( so full path is : /Users/alain/dev/ddf/release/jest/staticFileAssetTransform.js )     
  </code></pre>
  </li>
  <li><p>My package.json</p>
  <pre><code>{ ...
   &quot;scripts&quot;: {
        &quot;test&quot;: &quot;jest __testsv2__ --config=./jest.config.js&quot;
        ...
    }
  }
  </code></pre>
  </li>
  <li><p>babel.config.js</p>
  <pre><code>module.exports = function(api) {
     api.cache(false);
     const presets = ['@babel/preset-env', '@babel/preset-react'];    
     const plugins = [['@babel/proposal-object-rest-spread'],];
  
     return {
       presets,    plugins,   sourceMaps: &quot;inline&quot;,
       ignore: [(process.env.NODE_ENV !== 'test' ?  &quot;**/*.test.js&quot; : null)    ].filter(n =&gt; n)
     };
   };
  </code></pre>
  </li>
  <li><p>jest.config.js</p>
  <pre><code> module.exports = {
    resolver: 'browser-resolve',
    clearMocks: true,
    moduleNameMapper: {    '\\.(css|less|styl|md)$': 'identity-obj-proxy'    },
    // A list of paths to modules that run some code to configure or set up the testing framework before each test
    // setupFilesAfterEnv: ['./jest/setup.js'], // don't work too
    setupFilesAfterEnv: ['&lt;rootDir&gt;/jest/setup.js'], 
  
  
    // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
    testPathIgnorePatterns: ['/node_modules/', '/__gql_mocks__/'],
  
    // A map from regular expressions to paths to transformers
    transform: {
      '^.+\\.js$': './jest/babelRootModeUpwardTransform.js',
      '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '&lt;rootDir&gt;/jest/staticFileAssetTransform.js',
    },
  };
  </code></pre>
  </li>
  </ul>