-
Notifications
You must be signed in to change notification settings - Fork 453
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
Failing bindings #2
Comments
I'll take a look at it |
@reflog when I run
Can you help me reproduce the error you're getting? |
This is odd. Just checked that all my code is committed, ran the test again:
|
I'll check this on a fresh VM |
I was able to reproduce this on a fresh VM. The problem is neither This error is caused by the
Closing this issue. |
Thanks! But out of curiosity (and my lack of knowledge of node internals) - how does the code run without jest, but fails when ran with jest? How does it succeed without the node-gyp rebuild? |
When you don't use Jest, the code isn't invoked (the library in question doesn't need to be loaded) If you created another file and tried to load |
If you don't mind helping out a fellow dev - i've commited an example to the same repo: https://github.com/reflog/jest_bug_test and added a small program to demonstrate that I can actually run the code using 'testModule' without node-gyp. You can do 'npm run go' to run the test app - it will successfully import node-etcd and deasync. I'm trying to understand - why is this happening. Thanks in advance! |
If it's working in that way, I might have to take a closer look at it. I'll try to do that later today. Reopening the issue for now. |
Can you test this with a plain Javascript project, using jest but not ts-jest? |
Tested. Using plain JS and Jest - works. |
I just converted this to JS and tested it. I'm seeing the same errors without ts-jest. Here's the repo of the converted code: https://github.com/kulshekhar/jest_bug_test
Can you test this repo and share your results? |
Weird. I could swear it worked before. But you are right - this does not. I guess it is a Jest issue after all? |
That's what it looks like. I'm closing this issue. Maybe you should reopen jestjs/jest#1694 and continue the discussion there? Side note: I usually delete forked repos. Since you might want a copy to share on jest's issue tracker, let me know if you want me to leave this fork up for a while. |
Yes, please leave it open. I'd reference both repos in Jest's tracker. Thanks for helping out! |
Ran into the same issue - for the benefit of others, as per jestjs/jest#1694 (direct link) the issue is not including The |
@narkowicz thanks for sharing that info. I've opened an issue to track this. Would it be possible for you to send a PR with |
Hi. I've opened this issue in Jest repo initially, but later found out that it was due to my usage of ts-jest.
jestjs/jest#1694
Could you take a look please? I've made a repo to show how to reproduce the bug:
https://github.com/reflog/jest_bug_test
The text was updated successfully, but these errors were encountered: