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
path: root/test
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2022-08-16 20:07:55 +0300
committerNathan Fritz <fritzy@github.com>2022-08-17 03:54:17 +0300
commitcd2b1e6f5fbd85691465bbfe275c8baf1b6e2746 (patch)
tree933159adaa35416580970c2aecd2c4c8006b0675 /test
parent05d9bcf7e557e0dbecbd80d4d1be332963761e69 (diff)
fix(explain): display override information
Diffstat (limited to 'test')
-rw-r--r--test/lib/utils/explain-dep.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/lib/utils/explain-dep.js b/test/lib/utils/explain-dep.js
index 000f5b816..ed006c01d 100644
--- a/test/lib/utils/explain-dep.js
+++ b/test/lib/utils/explain-dep.js
@@ -129,6 +129,23 @@ const cases = {
dependents: [],
extraneous: true,
},
+
+ overridden: {
+ name: 'overridden-root',
+ version: '1.0.0',
+ location: 'node_modules/overridden-root',
+ overridden: true,
+ dependents: [{
+ type: 'prod',
+ name: 'overridden-dep',
+ spec: '1.0.0',
+ rawSpec: '^2.0.0',
+ overridden: true,
+ from: {
+ location: '/path/to/project',
+ },
+ }],
+ },
}
cases.manyDeps = {