Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
esm: add back globalPreload tests#48779
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
aduh95 commented Jul 15, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot commented Jul 15, 2023
Review requested:
|
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot commented Jul 15, 2023
nodejs-github-bot commented Jul 16, 2023
JakobJingleheimer left a comment
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.
🙌 awesome, thanks for tackling this!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Jacob Smith <[email protected]>
nodejs-github-bot commented Jul 16, 2023
nodejs-github-bot commented Jul 17, 2023
aduh95 commented Jul 17, 2023
Landed in 16b8c71 |
PR-URL: nodejs#48779Fixes: nodejs#48778Fixes: nodejs#48516 Refs: nodejs#46402 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
PR-URL: nodejs#48779Fixes: nodejs#48778Fixes: nodejs#48516 Refs: nodejs#46402 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
PR-URL: nodejs#48779Fixes: nodejs#48778Fixes: nodejs#48516 Refs: nodejs#46402 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
PR-URL: nodejs#48779Fixes: nodejs#48778Fixes: nodejs#48516 Refs: nodejs#46402 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
PR-URL: nodejs#48779Fixes: nodejs#48778Fixes: nodejs#48516 Refs: nodejs#46402 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
PR-URL: #48779Fixes: #48778Fixes: #48516 Refs: #46402 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
PR-URL: nodejs#48779Fixes: nodejs#48778Fixes: nodejs#48516 Refs: nodejs#46402 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
PR-URL: #48779 Backport-PR-URL: #50669Fixes: #48778Fixes: #48516 Refs: #46402 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
PR-URL: nodejs/node#48779 Backport-PR-URL: nodejs/node#50669Fixes: nodejs/node#48778Fixes: nodejs/node#48516 Refs: nodejs/node#46402 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
PR-URL: nodejs/node#48779 Backport-PR-URL: nodejs/node#50669Fixes: nodejs/node#48778Fixes: nodejs/node#48516 Refs: nodejs/node#46402 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
This started as a revert of 938341a.
#44710 removed
setImportMetaCallback, removing possibility for hooks authors to modify theimport.metaobject. It also removed all hooks execution when node entry point was not a file (e.g. REPL,--eval, etc.) which was not a problem except forglobalPreloadwhich is always supposed to run. I've added some tests to ensureglobalPreloadbehaves correctly in this case.I've also added back the test that was removed in #46402 because it's good test for
globalPreloadand ensures mocking works – which is a very important use case for hooks IMO.Refs: #46402
Fixes: #48778
Fixes: #48516