@@ -77868,11 +77868,34 @@ ArboristNode {
77868
77868
77869
77869
exports[`test/arborist/build-ideal-tree.js TAP optional dependency failures > optional-dep-enotarget 1`] = `
77870
77870
ArboristNode {
77871
+ "children": Map {
77872
+ "tap" => ArboristNode {
77873
+ "edgesIn": Set {
77874
+ EdgeIn {
77875
+ "error": "INVALID",
77876
+ "from": "",
77877
+ "name": "tap",
77878
+ "spec": "9999.0000.9999",
77879
+ "type": "optional",
77880
+ },
77881
+ },
77882
+ "errors": Array [
77883
+ Object {
77884
+ "code": "ETARGET",
77885
+ },
77886
+ ],
77887
+ "location": "node_modules/tap",
77888
+ "name": "tap",
77889
+ "optional": true,
77890
+ "path": "{CWD}/test/fixtures/optional-dep-enotarget/node_modules/tap",
77891
+ },
77892
+ },
77871
77893
"edgesOut": Map {
77872
77894
"tap" => EdgeOut {
77895
+ "error": "INVALID",
77873
77896
"name": "tap",
77874
77897
"spec": "9999.0000.9999",
77875
- "to": null ,
77898
+ "to": "node_modules/tap" ,
77876
77899
"type": "optional",
77877
77900
},
77878
77901
},
@@ -77887,11 +77910,32 @@ ArboristNode {
77887
77910
77888
77911
exports[`test/arborist/build-ideal-tree.js TAP optional dependency failures > optional-dep-missing 1`] = `
77889
77912
ArboristNode {
77913
+ "children": Map {
77914
+ "@isaacs/this-does-not-exist-at-all" => ArboristNode {
77915
+ "edgesIn": Set {
77916
+ EdgeIn {
77917
+ "from": "",
77918
+ "name": "@isaacs/this-does-not-exist-at-all",
77919
+ "spec": "*",
77920
+ "type": "optional",
77921
+ },
77922
+ },
77923
+ "errors": Array [
77924
+ Object {
77925
+ "code": "E404",
77926
+ },
77927
+ ],
77928
+ "location": "node_modules/@isaacs/this-does-not-exist-at-all",
77929
+ "name": "@isaacs/this-does-not-exist-at-all",
77930
+ "optional": true,
77931
+ "path": "{CWD}/test/fixtures/optional-dep-missing/node_modules/@isaacs/this-does-not-exist-at-all",
77932
+ },
77933
+ },
77890
77934
"edgesOut": Map {
77891
77935
"@isaacs/this-does-not-exist-at-all" => EdgeOut {
77892
77936
"name": "@isaacs/this-does-not-exist-at-all",
77893
77937
"spec": "*",
77894
- "to": null ,
77938
+ "to": "node_modules/@isaacs/this-does-not-exist-at-all" ,
77895
77939
"type": "optional",
77896
77940
},
77897
77941
},
@@ -77906,11 +77950,60 @@ ArboristNode {
77906
77950
77907
77951
exports[`test/arborist/build-ideal-tree.js TAP optional dependency failures > optional-metadep-enotarget 1`] = `
77908
77952
ArboristNode {
77953
+ "children": Map {
77954
+ "@isaacs/prod-dep-enotarget" => ArboristNode {
77955
+ "children": Map {
77956
+ "tap" => ArboristNode {
77957
+ "edgesIn": Set {
77958
+ EdgeIn {
77959
+ "error": "INVALID",
77960
+ "from": "node_modules/@isaacs/prod-dep-enotarget",
77961
+ "name": "tap",
77962
+ "spec": "9999.0000.9999",
77963
+ "type": "prod",
77964
+ },
77965
+ },
77966
+ "errors": Array [
77967
+ Object {
77968
+ "code": "ETARGET",
77969
+ },
77970
+ ],
77971
+ "location": "node_modules/@isaacs/prod-dep-enotarget/node_modules/tap",
77972
+ "name": "tap",
77973
+ "optional": true,
77974
+ "path": "{CWD}/test/fixtures/optional-metadep-enotarget/node_modules/@isaacs/prod-dep-enotarget/node_modules/tap",
77975
+ },
77976
+ },
77977
+ "edgesIn": Set {
77978
+ EdgeIn {
77979
+ "from": "",
77980
+ "name": "@isaacs/prod-dep-enotarget",
77981
+ "spec": "*",
77982
+ "type": "optional",
77983
+ },
77984
+ },
77985
+ "edgesOut": Map {
77986
+ "tap" => EdgeOut {
77987
+ "error": "INVALID",
77988
+ "name": "tap",
77989
+ "spec": "9999.0000.9999",
77990
+ "to": "node_modules/@isaacs/prod-dep-enotarget/node_modules/tap",
77991
+ "type": "prod",
77992
+ },
77993
+ },
77994
+ "location": "node_modules/@isaacs/prod-dep-enotarget",
77995
+ "name": "@isaacs/prod-dep-enotarget",
77996
+ "optional": true,
77997
+ "path": "{CWD}/test/fixtures/optional-metadep-enotarget/node_modules/@isaacs/prod-dep-enotarget",
77998
+ "resolved": "https://registry.npmjs.org/@isaacs/prod-dep-enotarget/-/prod-dep-enotarget-1.0.0.tgz",
77999
+ "version": "1.0.0",
78000
+ },
78001
+ },
77909
78002
"edgesOut": Map {
77910
78003
"@isaacs/prod-dep-enotarget" => EdgeOut {
77911
78004
"name": "@isaacs/prod-dep-enotarget",
77912
78005
"spec": "*",
77913
- "to": null ,
78006
+ "to": "node_modules/@isaacs/prod-dep-enotarget" ,
77914
78007
"type": "optional",
77915
78008
},
77916
78009
},
@@ -77924,11 +78017,58 @@ ArboristNode {
77924
78017
77925
78018
exports[`test/arborist/build-ideal-tree.js TAP optional dependency failures > optional-metadep-missing 1`] = `
77926
78019
ArboristNode {
78020
+ "children": Map {
78021
+ "@isaacs/testing-prod-dep-metadata-missing" => ArboristNode {
78022
+ "children": Map {
78023
+ "@isaacs/this-does-not-exist-at-all" => ArboristNode {
78024
+ "edgesIn": Set {
78025
+ EdgeIn {
78026
+ "from": "node_modules/@isaacs/testing-prod-dep-metadata-missing",
78027
+ "name": "@isaacs/this-does-not-exist-at-all",
78028
+ "spec": "*",
78029
+ "type": "prod",
78030
+ },
78031
+ },
78032
+ "errors": Array [
78033
+ Object {
78034
+ "code": "E404",
78035
+ },
78036
+ ],
78037
+ "location": "node_modules/@isaacs/testing-prod-dep-metadata-missing/node_modules/@isaacs/this-does-not-exist-at-all",
78038
+ "name": "@isaacs/this-does-not-exist-at-all",
78039
+ "optional": true,
78040
+ "path": "{CWD}/test/fixtures/optional-metadep-missing/node_modules/@isaacs/testing-prod-dep-metadata-missing/node_modules/@isaacs/this-does-not-exist-at-all",
78041
+ },
78042
+ },
78043
+ "edgesIn": Set {
78044
+ EdgeIn {
78045
+ "from": "",
78046
+ "name": "@isaacs/testing-prod-dep-metadata-missing",
78047
+ "spec": "*",
78048
+ "type": "optional",
78049
+ },
78050
+ },
78051
+ "edgesOut": Map {
78052
+ "@isaacs/this-does-not-exist-at-all" => EdgeOut {
78053
+ "name": "@isaacs/this-does-not-exist-at-all",
78054
+ "spec": "*",
78055
+ "to": "node_modules/@isaacs/testing-prod-dep-metadata-missing/node_modules/@isaacs/this-does-not-exist-at-all",
78056
+ "type": "prod",
78057
+ },
78058
+ },
78059
+ "location": "node_modules/@isaacs/testing-prod-dep-metadata-missing",
78060
+ "name": "@isaacs/testing-prod-dep-metadata-missing",
78061
+ "optional": true,
78062
+ "path": "{CWD}/test/fixtures/optional-metadep-missing/node_modules/@isaacs/testing-prod-dep-metadata-missing",
78063
+ "resolved": "https://registry.npmjs.org/@isaacs/testing-prod-dep-metadata-missing/-/testing-prod-dep-metadata-missing-1.0.0.tgz",
78064
+ "version": "1.0.0",
78065
+ },
78066
+ },
77927
78067
"edgesOut": Map {
77928
78068
"@isaacs/testing-prod-dep-metadata-missing" => EdgeOut {
77929
78069
"name": "@isaacs/testing-prod-dep-metadata-missing",
77930
78070
"spec": "*",
77931
- "to": null ,
78071
+ "to": "node_modules/@isaacs/testing-prod-dep-metadata-missing" ,
77932
78072
"type": "optional",
77933
78073
},
77934
78074
},
0 commit comments