how to debug jest unit tests on create-react-app?
<p>I use <em>create-react-app</em> and I would like to debug my unit tests</p>

<p>as <a href="http://facebook.github.io/jest/docs/troubleshooting.html#tests-are-failing-and-you-don-t-know-why" rel="noreferrer">Jest documentation says</a>, debugging is possible using this command:</p>

<pre><code>node --debug-brk --inspect ./node_modules/.bin/jest -i [any other arguments here]
</code></pre>

<p>unfortunately, it's not working with create-react-app.
I got this error instead:</p>

<pre><code>node --debug-brk --inspect ./node_modules/.bin/jest -i
Debugger listening on port 9229.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
    chrome-devtools://devtools/remote/serve_file/@60cd6e859b9f557d2312f5bf532f6aec5f284980/inspector.html?experiments=true&amp;v8only=true&amp;ws=localhost:9229/node
Debugger attached.
module.js:457
    throw err;
    ^

Error: Cannot find module '/Users/asafkatz/dev/newmaps/node_modules/.bin/jest'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Timeout.Module.runMain [as _onTimeout] (module.js:590:10)
    at tryOnTimeout (timers.js:232:11)
    at Timer.listOnTimeout (timers.js:202:5)
Waiting for the debugger to disconnect...
</code></pre>

<p><strong>what is the proper way to debug jest unit test on create-react-app?</strong></p>