Uh oh!
There was an error while loading. Please reload this page.
esm: refactor mocking test - #49465
Conversation
nodejs-github-bot
commented
Sep 3, 2023
JakobJingleheimer
left a comment
There was a problem hiding this comment.
🙌 wow! we should use this before & after as a poster-child for register & initialize
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bcb1837 to
d1bedb7CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
commented
Sep 4, 2023
nodejs-github-bot
commented
Sep 4, 2023
nodejs-github-bot
commented
Sep 5, 2023
nodejs-github-bot
commented
Sep 5, 2023
nodejs-github-bot
commented
Sep 5, 2023
Landed in 6a5394e |
PR-URL: #49465 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: nodejs#49465 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: nodejs/node#49465 Backport-PR-URL: nodejs/node#50669 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: nodejs/node#49465 Backport-PR-URL: nodejs/node#50669 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This PR refactors
test/es-module/test-esm-loader-mock.mjsto use the newregisterandinitializeAPIs instead ofglobalPreloadandsetImportMetaCallback. I tried to preserve as much of the previous test as possible; all of the assertions from the earlier version are unchanged. This test passes both here, onmain, and within #49144.The largest addition to
test-esm-loader-mock.mjswas code that just moved there from within theinsideAppContextfunction inmock-loader.mjs.@nodejs/loaders