@@ -159178,6 +159178,106 @@ ArboristNode {
159178
159178
}
159179
159179
`
159180
159180
159181
+ exports[`test/arborist/build-ideal-tree.js TAP workspaces should allow adding a workspace as a dep to a workspace > must match snapshot 1`] = `
159182
+ ArboristNode {
159183
+ "children": Map {
159184
+ "workspace-a" => ArboristLink {
159185
+ "edgesIn": Set {
159186
+ EdgeIn {
159187
+ "from": "",
159188
+ "name": "workspace-a",
159189
+ "spec": "file:{CWD}/test/arborist/tap-testdir-build-ideal-tree-workspaces-should-allow-adding-a-workspace-as-a-dep-to-a-workspace/workspace-a",
159190
+ "type": "workspace",
159191
+ },
159192
+ },
159193
+ "isWorkspace": true,
159194
+ "location": "node_modules/workspace-a",
159195
+ "name": "workspace-a",
159196
+ "path": "{CWD}/test/arborist/tap-testdir-build-ideal-tree-workspaces-should-allow-adding-a-workspace-as-a-dep-to-a-workspace/node_modules/workspace-a",
159197
+ "realpath": "{CWD}/test/arborist/tap-testdir-build-ideal-tree-workspaces-should-allow-adding-a-workspace-as-a-dep-to-a-workspace/workspace-a",
159198
+ "resolved": "file:../workspace-a",
159199
+ "target": ArboristNode {
159200
+ "location": "workspace-a",
159201
+ },
159202
+ "version": "1.0.0",
159203
+ },
159204
+ "workspace-b" => ArboristLink {
159205
+ "edgesIn": Set {
159206
+ EdgeIn {
159207
+ "from": "",
159208
+ "name": "workspace-b",
159209
+ "spec": "file:{CWD}/test/arborist/tap-testdir-build-ideal-tree-workspaces-should-allow-adding-a-workspace-as-a-dep-to-a-workspace/workspace-b",
159210
+ "type": "workspace",
159211
+ },
159212
+ EdgeIn {
159213
+ "from": "workspace-a",
159214
+ "name": "workspace-b",
159215
+ "spec": "*",
159216
+ "type": "prod",
159217
+ },
159218
+ },
159219
+ "isWorkspace": true,
159220
+ "location": "node_modules/workspace-b",
159221
+ "name": "workspace-b",
159222
+ "path": "{CWD}/test/arborist/tap-testdir-build-ideal-tree-workspaces-should-allow-adding-a-workspace-as-a-dep-to-a-workspace/node_modules/workspace-b",
159223
+ "realpath": "{CWD}/test/arborist/tap-testdir-build-ideal-tree-workspaces-should-allow-adding-a-workspace-as-a-dep-to-a-workspace/workspace-b",
159224
+ "resolved": "file:../workspace-b",
159225
+ "target": ArboristNode {
159226
+ "location": "workspace-b",
159227
+ },
159228
+ "version": "1.0.0",
159229
+ },
159230
+ },
159231
+ "edgesOut": Map {
159232
+ "workspace-a" => EdgeOut {
159233
+ "name": "workspace-a",
159234
+ "spec": "file:{CWD}/test/arborist/tap-testdir-build-ideal-tree-workspaces-should-allow-adding-a-workspace-as-a-dep-to-a-workspace/workspace-a",
159235
+ "to": "node_modules/workspace-a",
159236
+ "type": "workspace",
159237
+ },
159238
+ "workspace-b" => EdgeOut {
159239
+ "name": "workspace-b",
159240
+ "spec": "file:{CWD}/test/arborist/tap-testdir-build-ideal-tree-workspaces-should-allow-adding-a-workspace-as-a-dep-to-a-workspace/workspace-b",
159241
+ "to": "node_modules/workspace-b",
159242
+ "type": "workspace",
159243
+ },
159244
+ },
159245
+ "fsChildren": Set {
159246
+ ArboristNode {
159247
+ "edgesOut": Map {
159248
+ "workspace-b" => EdgeOut {
159249
+ "name": "workspace-b",
159250
+ "spec": "*",
159251
+ "to": "node_modules/workspace-b",
159252
+ "type": "prod",
159253
+ },
159254
+ },
159255
+ "isWorkspace": true,
159256
+ "location": "workspace-a",
159257
+ "name": "workspace-a",
159258
+ "path": "{CWD}/test/arborist/tap-testdir-build-ideal-tree-workspaces-should-allow-adding-a-workspace-as-a-dep-to-a-workspace/workspace-a",
159259
+ "version": "1.0.0",
159260
+ },
159261
+ ArboristNode {
159262
+ "isWorkspace": true,
159263
+ "location": "workspace-b",
159264
+ "name": "workspace-b",
159265
+ "path": "{CWD}/test/arborist/tap-testdir-build-ideal-tree-workspaces-should-allow-adding-a-workspace-as-a-dep-to-a-workspace/workspace-b",
159266
+ "version": "1.0.0",
159267
+ },
159268
+ },
159269
+ "isProjectRoot": true,
159270
+ "location": "",
159271
+ "name": "tap-testdir-build-ideal-tree-workspaces-should-allow-adding-a-workspace-as-a-dep-to-a-workspace",
159272
+ "packageName": "root",
159273
+ "path": "{CWD}/test/arborist/tap-testdir-build-ideal-tree-workspaces-should-allow-adding-a-workspace-as-a-dep-to-a-workspace",
159274
+ "workspaces": Map {
159275
+ "workspace-a" => "workspace-a",
159276
+ "workspace-b" => "workspace-b",
159277
+ },
159278
+ }
159279
+ `
159280
+
159181
159281
exports[`test/arborist/build-ideal-tree.js TAP workspaces should ignore nested node_modules folders > expect resolving Promise 1`] = `
159182
159282
ArboristNode {
159183
159283
"children": Map {
0 commit comments