Skip to content

Conversation

@nlf
Copy link
Contributor

@nlf nlf commented May 24, 2022

currently everywhere we were doing this.npm.config.get('global') was not accounting for the location flag, so keeping in tradition with our other "derived" configs i
attached it as a getter to the npm class and changed all the references to use the getter

@nlf nlf requested a review from a team as a code owner May 24, 2022 17:52

await outdated(testDir, {
global: false,
config: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these tests were passing entirely by coincidence. if they had been setting global to true they would not have done the expected thing

Copy link
Contributor

@ruyadorno ruyadorno left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@lukekarrys lukekarrys merged commit 0f89e07 into latest May 25, 2022
@lukekarrys lukekarrys deleted the nlf/add-global-getter branch May 25, 2022 16:56
@lukekarrys lukekarrys mentioned this pull request May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants