-
Notifications
You must be signed in to change notification settings - Fork 146
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
fix: Support resolving module.register
dependencies
#429
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Can you change the integration test into a unit test instead?
That way we can see see the input and output to make sure these remain the same instead of relying on implementation details of a 3rd party package.
Looks like I need to pull my Windows laptop out and work out why those tests are failing! |
So the failing unit test ( One thing I don't understand is how it's passing at all, even on other platforms. The expected output is: nft/test/unit/zeromq-node-gyp/output.js Lines 1 to 11 in 31ab417
But it's failing with an extra file included:
And the reason it's being included:
And then when you look at the actual source of the parent, it's obvious why this is being included: } else { // else use the runtime version here
module.exports = require('./node-gyp-build.js')
} So how is this passing on every other platform but failing on Windows when the full test suite is run? |
This might fix it: #432 I merged it in to see if tests pass now 🤞 |
…into fix/module-register
Unfortunatly not 😭 I'm more confused as to how this test passes on any platform. The additional dependency in the failing case looks like it should be included! |
Looks like the only failing test is the new one now. Its missing
|
This comment was marked as outdated.
This comment was marked as outdated.
6e1d464
to
5cd460d
Compare
So I reverted the Looking at the resulting |
@styfle can this be merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but there's one case we should add.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
@EndangeredMassa Want to give it another look?
🎉 This PR is included in version 0.27.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Closes #428
module.register(specifier[, parentURL][, options])