-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
emacs-jest assumes jest is located on the user's path #2
Comments
Take a look at locate-dominating-file. You can use it to find the first path containing node_modules/.bin/jest |
Also consider use of |
does not solve this issue |
I mainly use Jest for React development and these projects are created with the (use-package jest
:config
(setq jest-executable "npm test --")
) |
There is already an emacs package that will add your project's
@eemil I have everything working with |
You want to use this anyway. As it centralises the configuration of jest. We need to add |
Sorry for taking forever to get around to this, and being a poor maintainer so far, this is my first barely popular project. @baerrach I'm testing the "npm test --" and it's working great. So great that it works with Could you expand on your I don't know whether to rename the repo to something else, maybe just make a note of it in the README, archive the project or what. Any comments on that would be appreciated. |
Our project has Its a bit equivalent to webpack alias https://webpack.js.org/configuration/resolve/ By setting To work on both Windows and Unix environments I was using I've since abandoned that because Now I just recommend Windows users to use https://gitforwindows.org/ and set their shell correctly to export |
Gotcha so it's just windows? But with the Sidenote I use yarn on some projects but I went with npm because everyone should have npm, but not everyone needs yarn, and it works with I also didn't give proper credit to @Aigeruth in the commit, I apologize, I read @baerrach's, quote. |
I was excited to use emacs-jest, but when I tried it out I got:
/bin/sh jest: command not found.
Could it be possible to make it so that this package looks for jest in the module? Like it could try to find the nearest package.json and execute jest from the node_modules in that folder.
I've used other packages like grunt.el https://github.com/gempesaw/grunt.el and it has similar behavior where it tries to find the nearest package json to run grunt.
The text was updated successfully, but these errors were encountered: