title: Pass arguments to “node” executable when running “yarn run”
body: <p>node can be started with various options. Especially interesting is the <code>--inspect</code> flag:</p>
  
  <pre><code>node --inspect node_modules/.bin/jest some.spec.js
  </code></pre>
  
  <p>Is it possible to pass the <code>--inspect</code> flag somehow to <code>yarn run</code>? For example:</p>
  
  <pre><code>yarn run test --inspect some.spec.js 
  </code></pre>
  
  <p>There is a <a href="https://stackoverflow.com/questions/37317557/pass-arguments-to-node-executable-when-running-npm-run">similar question</a> for <code>npm run</code>, where it seems to be not possible.</p>