title: how to use A-Dir's jest to test B-Dir?
body: <p>I want to create an auto report system.</p>
  
  <p>The system can <code>git clone project</code> and <code>auto-test</code> the project.</p>
  
  <p>I run system and the system is in <code>A path</code></p>
  
  <p>I clone a project in <code>B path</code> without <code>npm install</code> (I don't want waste time)</p>
  
  <p>but I find that when I use</p>
  
  <blockquote>
    <p>pathB > pathA/node_modules/.bin/jest</p>
  </blockquote>
  
  <p>It doesn't work.</p>
  
  <p>and</p>
  
  <blockquote>
    <p>pathA > node_modules/.bin/jest</p>
  </blockquote>
  
  <p>is OK.</p>
  
  <p>BTW, <code>eslint</code> is OK</p>
  
  <blockquote>
    <p>pathB > pathA/node_modules/.bin/eslint</p>
  </blockquote>