-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
63 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,24 +6,7 @@ | |
*/ | ||
'use strict' | ||
exports[`test/lib/commands/query.js TAP global > should return global package 1`] = ` | ||
[ | ||
{ | ||
"name": "lorem", | ||
"version": "2.0.0", | ||
"_id": "[email protected]", | ||
"pkgid": "[email protected]", | ||
"location": "node_modules/lorem", | ||
"path": "{CWD}/test/lib/commands/tap-testdir-query-global/global/node_modules/lorem", | ||
"realpath": "{CWD}/test/lib/commands/tap-testdir-query-global/global/node_modules/lorem", | ||
"resolved": null, | ||
"from": [ | ||
"" | ||
], | ||
"to": [], | ||
"dev": false, | ||
"inBundle": false | ||
} | ||
] | ||
` | ||
|
||
exports[`test/lib/commands/query.js TAP include-workspace-root > should return workspace object and root object 1`] = ` | ||
|
@@ -49,7 +32,8 @@ exports[`test/lib/commands/query.js TAP include-workspace-root > should return w | |
"node_modules/b" | ||
], | ||
"dev": false, | ||
"inBundle": false | ||
"inBundle": false, | ||
"deduped": false | ||
}, | ||
{ | ||
"name": "c", | ||
|
@@ -63,92 +47,22 @@ exports[`test/lib/commands/query.js TAP include-workspace-root > should return w | |
"from": [], | ||
"to": [], | ||
"dev": false, | ||
"inBundle": false | ||
"inBundle": false, | ||
"deduped": false | ||
} | ||
] | ||
` | ||
|
||
exports[`test/lib/commands/query.js TAP linked node > should return linked node res 1`] = ` | ||
[ | ||
{ | ||
"name": "a", | ||
"version": "1.0.0", | ||
"_id": "[email protected]", | ||
"pkgid": "[email protected]", | ||
"location": "a", | ||
"path": "{CWD}/test/lib/commands/tap-testdir-query-linked-node/prefix/a", | ||
"realpath": "{CWD}/test/lib/commands/tap-testdir-query-linked-node/prefix/a", | ||
"resolved": null, | ||
"from": [], | ||
"to": [], | ||
"dev": false, | ||
"inBundle": false | ||
}, | ||
{ | ||
"name": "a", | ||
"version": "1.0.0", | ||
"_id": "[email protected]", | ||
"pkgid": "[email protected]", | ||
"location": "a", | ||
"path": "{CWD}/test/lib/commands/tap-testdir-query-linked-node/prefix/a", | ||
"realpath": "{CWD}/test/lib/commands/tap-testdir-query-linked-node/prefix/a", | ||
"resolved": null, | ||
"from": [], | ||
"to": [], | ||
"dev": false, | ||
"inBundle": false | ||
} | ||
] | ||
` | ||
|
||
exports[`test/lib/commands/query.js TAP recursive tree > should return everything in the tree, accounting for recursion 1`] = ` | ||
` | ||
|
||
exports[`test/lib/commands/query.js TAP simple query > should return root object and direct children 1`] = ` | ||
[ | ||
{ | ||
"name": "project", | ||
"dependencies": { | ||
"a": "^1.0.0", | ||
"b": "^1.0.0" | ||
}, | ||
"pkgid": "project@", | ||
"location": "", | ||
"path": "{CWD}/test/lib/commands/tap-testdir-query-simple-query/prefix", | ||
"realpath": "{CWD}/test/lib/commands/tap-testdir-query-simple-query/prefix", | ||
"resolved": null, | ||
"from": [], | ||
"to": [ | ||
"node_modules/a", | ||
"node_modules/b" | ||
], | ||
"dev": false, | ||
"inBundle": false | ||
}, | ||
{ | ||
"pkgid": "a@", | ||
"location": "node_modules/a", | ||
"path": "{CWD}/test/lib/commands/tap-testdir-query-simple-query/prefix/node_modules/a", | ||
"realpath": "{CWD}/test/lib/commands/tap-testdir-query-simple-query/prefix/node_modules/a", | ||
"resolved": null, | ||
"from": [ | ||
"" | ||
], | ||
"to": [], | ||
"dev": false, | ||
"inBundle": false | ||
}, | ||
{ | ||
"pkgid": "b@", | ||
"location": "node_modules/b", | ||
"path": "{CWD}/test/lib/commands/tap-testdir-query-simple-query/prefix/node_modules/b", | ||
"realpath": "{CWD}/test/lib/commands/tap-testdir-query-simple-query/prefix/node_modules/b", | ||
"resolved": null, | ||
"from": [ | ||
"" | ||
], | ||
"to": [], | ||
"dev": false, | ||
"inBundle": false | ||
} | ||
] | ||
` | ||
|
||
exports[`test/lib/commands/query.js TAP workspace query > should return workspace object 1`] = ` | ||
|
@@ -165,7 +79,8 @@ exports[`test/lib/commands/query.js TAP workspace query > should return workspac | |
"from": [], | ||
"to": [], | ||
"dev": false, | ||
"inBundle": false | ||
"inBundle": false, | ||
"deduped": false | ||
} | ||
] | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -358,6 +358,11 @@ t.test('query-selector-all', async t => { | |
[':invalid', ['[email protected]']], | ||
[':link', ['[email protected]', '[email protected]']], | ||
[':link', ['[email protected]', '[email protected]']], | ||
[':deduped', [ | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
]], | ||
[':missing', ['missing-dep@^1.0.0']], | ||
[':private', ['[email protected]']], | ||
|
||
|