Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2022-03-22 19:35:12 +0300
committerLuke Karrys <luke@lukekarrys.com>2022-03-28 23:20:47 +0300
commitbd96ae4071f9cc8a65e741f414db12e98537971d (patch)
treeb144c4d935e02c1ec525081906830d3f548a8da3 /workspaces/arborist/test
parent18b8b94357d8f57301fbaa0f1e5dc2cf1128bf3e (diff)
fix(arborist): identify and repair invalid nodes in the virtual tree
Diffstat (limited to 'workspaces/arborist/test')
-rw-r--r--workspaces/arborist/test/arborist/build-ideal-tree.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/workspaces/arborist/test/arborist/build-ideal-tree.js b/workspaces/arborist/test/arborist/build-ideal-tree.js
index d869c686e..0aadd7adf 100644
--- a/workspaces/arborist/test/arborist/build-ideal-tree.js
+++ b/workspaces/arborist/test/arborist/build-ideal-tree.js
@@ -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 = [
'once@1.4.0',
@@ -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')
})