fix: Support resolving module.register dependencies#429
fix: Support resolving module.register dependencies#429kodiakhq[bot] merged 16 commits intovercel:mainfrom
module.register dependencies#429Conversation
styfle
left a comment
There was a problem hiding this comment.
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 🤞 |
|
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? |
EndangeredMassa
left a comment
There was a problem hiding this comment.
Looks good, but there's one case we should add.
Thanks!
styfle
left a comment
There was a problem hiding this comment.
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])