-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Can't find modules that end with '.node' #353
Comments
Some things that override node's `require` (e.g. jest) might break when including nodegit since. This is a workaround until they fix that. I made an issue at jestjs/jest#353
+1 |
I have the same problem with using Jest with https://www.npmjs.com/package/fibers. |
Turns out that Jest has the option moduleFileExtensions where you can add the "node" extension. Just add this to your package.json.
I think that should be the default. |
This will be fixed in the next release of jest, |
I'm still facing this is issue on jest v23.4.1. Adding node to moduleFileExtensions resolved the issue. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In NodeGit we include the native module via these lines. The key part is that we're using
require('../build/Release/nodegit')
and not including the '.node` at the end. This will break Jest when including this in any file.The text was updated successfully, but these errors were encountered: