8000 esm: rewrite loader hooks test by GeoffreyBooth · Pull Request #46016 · nodejs/node · GitHub
  • [go: up one dir, main page]

    Skip to content

    Conversation

    8000
    @GeoffreyBooth
    Copy link
    Member
    @GeoffreyBooth GeoffreyBooth commented Dec 29, 2022

    This is a spinoff from #44710. As part of that work, I needed to rewrite this test to no longer depend on internals and invoke ESMLoader directly; instead it spawns a node child process like most of the other loaders tests. The same result is confirmed, and this version of the test is less coupled to internal implementation details. I’m opening this as a standalone PR to confirm that this test passes for pre-refactor loaders code too, and to reduce the diff in the off-thread PR.

    @nodejs/loaders @nodejs/modules @nodejs/testing

    @GeoffreyBooth GeoffreyBooth added test Issues and PRs related to the tests. loaders Issues and PRs related to ES module loaders labels Dec 29, 2022
    @nodejs-github-bot nodejs-github-bot added esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run. labels Dec 29, 2022
    Rewrite the test that validates that custom loader hooks are called from
    being a test that depends on internals to one that spawns a child
    process and checks its output to confirm expected behavior.
    @GeoffreyBooth GeoffreyBooth force-pushed the rewrite-loader-hooks-test branch from 64342b5 to 8c07ea8 Compare December 29, 2022 21:28
    GeoffreyBooth and others added 2 commits December 29, 2022 17:25
    Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
    @nodejs-github-bot
    Copy link
    Collaborator

    @GeoffreyBooth GeoffreyBooth added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Dec 30, 2022
    Copy link
    Member
    @JakobJingleheimer JakobJingleheimer left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    LGTM!

    @GeoffreyBooth GeoffreyBooth added commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. commit-queue Add this label to land a pull request using GitHub Actions. and removed needs-ci PRs that need a full CI run. labels Dec 31, 2022
    @nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 31, 2022
    @nodejs-github-bot nodejs-github-bot merged commit e2dd139 into nodejs:main Dec 31, 2022
    @nodejs-github-bot
    Copy link
    Collaborator

    Landed in e2dd139

    targos pushed a commit that referenced this pull request Jan 1, 2023
    Rewrite the test that validates that custom loader hooks are called from
    being a test that depends on internals to one that spawns a child
    process and checks its output to confirm expected behavior.
    
    PR-URL: #46016
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Jacob Smith <jacob@frende.me>
    @RafaelGSS RafaelGSS mentioned this pull request Jan 2, 2023
    RafaelGSS pushed a commit that referenced this pull request Jan 4, 2023
    Rewrite the test that validates that custom loader hooks are called from
    being a test that depends on internals to one that spawns a child
    process and checks its output to confirm expected behavior.
    
    PR-URL: #46016
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Jacob Smith <jacob@frende.me>
    RafaelGSS pushed a commit that referenced this pull request Jan 5, 2023
    Rewrite the test that validates that custom loader hooks are called from
    being a test that depends on internals to one that spawns a child
    process and checks its output to confirm expected behavior.
    
    PR-URL: #46016
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Jacob Smith <jacob@frende.me>
    @GeoffreyBooth GeoffreyBooth deleted the rewrite-loader-hooks-test branch January 17, 2023 18:23
    juanarbol pushed a commit that referenced this pull request Jan 26, 2023
    Rewrite the test that validates that custom loader hooks are called from
    being a test that depends on internals to one that spawns a child
    process and checks its output to confirm expected behavior.
    
    PR-URL: #46016
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Jacob Smith <jacob@frende.me>
    @juanarbol juanarbol mentioned this pull request Jan 28, 2023
    juanarbol pushed a commit that referenced this pull request Jan 31, 2023
    Rewrite the test that validates that custom loader hooks are called from
    being a test that depends on internals to one that spawns a child
    process and checks its output to confirm expected behavior.
    
    PR-URL: #46016
    Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
    Reviewed-By: Jacob Smith <jacob@frende.me>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. esm Issues and PRs related to the ECMAScript Modules implementation. loaders Issues and PRs related to ES module loaders test Issues and PRs related to the tests.

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    4 participants

    0