-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(arborist): identify and repair invalid nodes in the virtual tree
- Loading branch information
1 parent
18b8b94
commit bd96ae4
Showing
3 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2213,10 +2213,10 @@ t.test('update global', async t => { | |
}) | ||
|
||
t.matchSnapshot(await printIdeal(path, { global: true, update: ['abbrev'] }), | ||
'updating missing dep should have no effect') | ||
'updating missing dep should have no effect, but fix the invalid node') | ||
|
||
t.matchSnapshot(await printIdeal(path, { global: true, update: ['wrappy'] }), | ||
'updating sub-dep has no effect') | ||
'updating sub-dep has no effect, but fixes the invalid node') | ||
|
||
const invalidArgs = [ | ||
'[email protected]', | ||
|
@@ -2234,7 +2234,7 @@ t.test('update global', async t => { | |
} | ||
|
||
t.matchSnapshot(await printIdeal(path, { global: true, update: ['once'] }), | ||
'update a single dep') | ||
'update a single dep, also fixes the invalid node') | ||
t.matchSnapshot(await printIdeal(path, { global: true, update: true }), | ||
'update all the deps') | ||
}) | ||
|