You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tap-snapshots/test/lib/commands/query.js.test.cjs
+46Lines changed: 46 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,10 @@ exports[`test/lib/commands/query.js TAP missing > should return missing node 1`]
124
124
]
125
125
`
126
126
127
+
exports[`test/lib/commands/query.js TAP package-lock-only missing workspace in tree > should return empty array for missing workspace 1`]=`
128
+
[]
129
+
`
130
+
127
131
exports[`test/lib/commands/query.js TAP package-lock-only with package lock > should return valid response with only lock info 1`]=`
128
132
[
129
133
{
@@ -172,6 +176,48 @@ exports[`test/lib/commands/query.js TAP package-lock-only with package lock > sh
172
176
]
173
177
`
174
178
179
+
exports[`test/lib/commands/query.js TAP package-lock-only with package lock and workspace > should return workspace object with package-lock-only 1`]=`
180
+
[
181
+
{
182
+
"name": "root",
183
+
"workspaces": [
184
+
"packages/*"
185
+
],
186
+
"pkgid": "root@",
187
+
"location": "",
188
+
"path": "{CWD}/prefix",
189
+
"realpath": "{CWD}/prefix",
190
+
"resolved": null,
191
+
"from": [],
192
+
"to": [
193
+
"node_modules/a"
194
+
],
195
+
"dev": false,
196
+
"inBundle": false,
197
+
"deduped": false,
198
+
"overridden": false,
199
+
"queryContext": {}
200
+
},
201
+
{
202
+
"name": "a",
203
+
"version": "1.0.0",
204
+
"_id": "a@1.0.0",
205
+
"pkgid": "a@1.0.0",
206
+
"location": "packages/a",
207
+
"path": "{CWD}/prefix/packages/a",
208
+
"realpath": "{CWD}/prefix/packages/a",
209
+
"resolved": null,
210
+
"from": [],
211
+
"to": [],
212
+
"dev": false,
213
+
"inBundle": false,
214
+
"deduped": false,
215
+
"overridden": false,
216
+
"queryContext": {}
217
+
}
218
+
]
219
+
`
220
+
175
221
exports[`test/lib/commands/query.js TAP recursive tree > should return everything in the tree, accounting for recursion 1`]=`
0 commit comments