This is my attempt to fix #135 (already tested on a personnal project).
Basically, instead of returning the root of the project as the current working directory, I try to detect where jest is "really" installed (starting at the file path, go up until I find node_modules/jest binary), so that we can run it from there.
Close #135
[EDIT]: Just saw #143, please let me know if this PR is still relevant ;)
Hi,
This is my attempt to fix #135 (already tested on a personnal project). Basically, instead of returning the root of the project as the current working directory, I try to detect where jest is "really" installed (starting at the file path, go up until I find
node_modules/jest
binary), so that we can run it from there.Close #135
[EDIT]: Just saw #143, please let me know if this PR is still relevant ;)