Skip to content

test, module: current directory gets priority for local module lookup - #20545

Closed
RakshithNM wants to merge 8 commits into
nodejs:masterfrom
RakshithNM:master
Closed

test, module: current directory gets priority for local module lookup#20545
RakshithNM wants to merge 8 commits into
nodejs:masterfrom
RakshithNM:master

Conversation

@RakshithNM

Copy link
Copy Markdown
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label May 5, 2018

@addaleaxaddaleax left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@cjihrigcjihrig left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tiny nit: Can you separate the // from Current by a single space instead of two.

@mscdex

Copy link
Copy Markdown
Contributor

I think the prefix should just be test: since no changes to the actual module system are being made here?

@RakshithNM

Copy link
Copy Markdown
Author

@cjihrig yeah ok, will update

@RakshithNM

Copy link
Copy Markdown
Author

@mscdex ah ok, now i think so too.

@trivikr

Copy link
Copy Markdown
Member

@RakshithNM Looks like your Outlook email ID is linked with the commits, and is not registered with Github. Kindly either register it or update your Github email ID in the config by following the instructions in Step 1

If you choose the latter, you can squash the commits so that your updated Github email ID is associated with the new commit.

@Trott

Trott commented May 5, 2018

Copy link
Copy Markdown
Member

@TrottTrott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 5, 2018
@RakshithNM

Copy link
Copy Markdown
Author

@trivikr ah yep, i have now verified my email

@Trott

Trott commented May 6, 2018

Copy link
Copy Markdown
Member

Can be fixed by whoever lands this, but IMO the commit message makes it sound like this is a functionality change when this is a test refactor. I'd propose something like this:

test: display values in AssertionErrors
In test-module-relative-lookup, change assert.strictEqual() calls so
that values are displayed when an AssertionError occurs.

rakshith_bellare@outlook.com added 2 commits May 6, 2018 19:42
In test-module-relative-lookup, change assert.strictEqual() calls so that values are displayed when an AssertionError occurs.
@RakshithNM

Copy link
Copy Markdown
Author

@Trott ah ok, i have ammended the commit message

@trivikr

Copy link
Copy Markdown
Member

@RakshithNM The author hasn't been updated in the commits
Here's an answer on StackOverflow on how to update author of existing commits

RakshithNMand others added 2 commits May 6, 2018 21:44
In test-module-relative-lookup, change assert.strictEqual() calls so that values are displayed when an AssertionError occurs.
@RakshithNM

Copy link
Copy Markdown
Author

@trivikr thanks for the link, i have now updated the author.

@addaleax

addaleax commented May 14, 2018

Copy link
Copy Markdown
Member

Landed in 745463a 🎉 🎉

@RakshithNM Just so you know, these merge conflicts are actually a bit of an issue – most of the time they can be ironed out while landing, but for the next PRs, using git rebase rather than git merge (or git pull --rebase rather than git pull) would help a bit :)

addaleax pushed a commit that referenced this pull request May 14, 2018
In test-module-relative-lookup, change assert.strictEqual()
calls so that values are displayed when an AssertionError occurs.
PR-URL: #20545
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@RakshithNM

Copy link
Copy Markdown
Author

@addaleax thank you :) I will keep that in mind moving forward.

addaleax pushed a commit that referenced this pull request May 14, 2018
In test-module-relative-lookup, change assert.strictEqual()
calls so that values are displayed when an AssertionError occurs.
PR-URL: #20545
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
@addaleaxaddaleax mentioned this pull request May 14, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@RakshithNM@mscdex@trivikr@Trott@addaleax@jasnell@cjihrig@nodejs-github-bot