Auto run test , how resolve hack with alias
Hi!
We use a special hack, that would get rid of the relative ways!
Look example https://gist.github.com/retyui/2767bf0cce5adc9bc13015c0a9e31b6f
And when I a run test from IDE, I will have an error :
It happens because of the invalid Working directory
this is because of this hack with the file package.json in src folder (look gist)


Please sign in to leave a comment.
Per https://youtrack.jetbrains.com/issue/WEB-31201, the cwd is set to a nearest ancestor directory with package.json... That's the reason for using src folder as a working directory.
As a workaround you can try setting the right working directory in Jest run configuration template: In Run | Edit Configurations..., expand Templates node, select Jest run configuration template and specify the working directory there
@Elena Pogorelova
Thank, it's helps!