Skip to content

Conversation

claudiahdz
Copy link
Contributor

This PR adds tests to npm outdated. While working on it I found some bugs:

  1. --global wasn't working since the global directory doesn't behave like a normal package and there are no edgesOut coming out of it. Instead, I'm using the children property to iterate over the different globally installed packages.
  2. We had a function for memoizing the packuments of the list of edges we had already taken from Arborist. However this list of edges is actually a Set and therefore no package in there gets ever duplicated. Memoizing doesn't make sense if we won't ever fetch the packument of a package twice. Concern: Are there cases when we need the duplication? --all?

@claudiahdz claudiahdz requested a review from a team August 31, 2020 21:06
@claudiahdz claudiahdz force-pushed the test/v7-outdated branch 8 times, most recently from fdbc5aa to 13f72d8 Compare August 31, 2020 22:35
@claudiahdz
Copy link
Contributor Author

Some snapshots are failing on Windows when --parseable even though they look exactly the same to me 🤔.

@darcyclarke darcyclarke added Release 7.x work is associated with a specific npm 7 release Needs Review pr: needs tests requires tests before merging labels Sep 1, 2020
ruyadorno pushed a commit that referenced this pull request Sep 16, 2020
PR-URL: #1750
Credit: @claudiahdz
Close: #1750
Reviewed-by: @ruyadorno
@ruyadorno ruyadorno closed this Sep 16, 2020
gfyoung added a commit to forking-repos/cli that referenced this pull request Sep 26, 2021
closes: npm#2556
xref: npm#1750

The xref'ed PR apparently dropped this behavior
without any explanation.
gfyoung added a commit to forking-repos/cli that referenced this pull request Sep 26, 2021
closes: npm#2556
xref: npm#1750

The xref'ed PR apparently dropped this behavior
without any explanation.
wraithgar pushed a commit that referenced this pull request Sep 27, 2021
closes: #2556
xref: #1750

The xref'ed PR apparently dropped this behavior
without any explanation.

PR-URL: #3799
Credit: @gfyoung
Close: #3799
Reviewed-by: @wraithgar
@nlf nlf deleted the test/v7-outdated branch March 28, 2022 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: needs tests requires tests before merging Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants