11cb0ef41Sopenharmony_ci/* IMPORTANT
21cb0ef41Sopenharmony_ci * This snapshot file is auto-generated, but designed for humans.
31cb0ef41Sopenharmony_ci * It should be checked into source control and tracked carefully.
41cb0ef41Sopenharmony_ci * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
51cb0ef41Sopenharmony_ci * Make sure to inspect the output below.  Do not ignore changes!
61cb0ef41Sopenharmony_ci */
71cb0ef41Sopenharmony_ci'use strict'
81cb0ef41Sopenharmony_ciexports[`test/lib/commands/query.js TAP global > should return global package 1`] = `
91cb0ef41Sopenharmony_ci[
101cb0ef41Sopenharmony_ci  {
111cb0ef41Sopenharmony_ci    "name": "lorem",
121cb0ef41Sopenharmony_ci    "version": "2.0.0",
131cb0ef41Sopenharmony_ci    "_id": "lorem@2.0.0",
141cb0ef41Sopenharmony_ci    "pkgid": "lorem@2.0.0",
151cb0ef41Sopenharmony_ci    "location": "node_modules/lorem",
161cb0ef41Sopenharmony_ci    "path": "{CWD}/global/node_modules/lorem",
171cb0ef41Sopenharmony_ci    "realpath": "{CWD}/global/node_modules/lorem",
181cb0ef41Sopenharmony_ci    "resolved": null,
191cb0ef41Sopenharmony_ci    "from": [
201cb0ef41Sopenharmony_ci      ""
211cb0ef41Sopenharmony_ci    ],
221cb0ef41Sopenharmony_ci    "to": [],
231cb0ef41Sopenharmony_ci    "dev": false,
241cb0ef41Sopenharmony_ci    "inBundle": false,
251cb0ef41Sopenharmony_ci    "deduped": false,
261cb0ef41Sopenharmony_ci    "overridden": false,
271cb0ef41Sopenharmony_ci    "queryContext": {}
281cb0ef41Sopenharmony_ci  }
291cb0ef41Sopenharmony_ci]
301cb0ef41Sopenharmony_ci`
311cb0ef41Sopenharmony_ci
321cb0ef41Sopenharmony_ciexports[`test/lib/commands/query.js TAP include-workspace-root > should return workspace object and root object 1`] = `
331cb0ef41Sopenharmony_ci[
341cb0ef41Sopenharmony_ci  {
351cb0ef41Sopenharmony_ci    "name": "project",
361cb0ef41Sopenharmony_ci    "workspaces": [
371cb0ef41Sopenharmony_ci      "c"
381cb0ef41Sopenharmony_ci    ],
391cb0ef41Sopenharmony_ci    "dependencies": {
401cb0ef41Sopenharmony_ci      "a": "^1.0.0",
411cb0ef41Sopenharmony_ci      "b": "^1.0.0"
421cb0ef41Sopenharmony_ci    },
431cb0ef41Sopenharmony_ci    "pkgid": "project@",
441cb0ef41Sopenharmony_ci    "location": "",
451cb0ef41Sopenharmony_ci    "path": "{CWD}/prefix",
461cb0ef41Sopenharmony_ci    "realpath": "{CWD}/prefix",
471cb0ef41Sopenharmony_ci    "resolved": null,
481cb0ef41Sopenharmony_ci    "from": [],
491cb0ef41Sopenharmony_ci    "to": [
501cb0ef41Sopenharmony_ci      "node_modules/c",
511cb0ef41Sopenharmony_ci      "node_modules/a",
521cb0ef41Sopenharmony_ci      "node_modules/b"
531cb0ef41Sopenharmony_ci    ],
541cb0ef41Sopenharmony_ci    "dev": false,
551cb0ef41Sopenharmony_ci    "inBundle": false,
561cb0ef41Sopenharmony_ci    "deduped": false,
571cb0ef41Sopenharmony_ci    "overridden": false,
581cb0ef41Sopenharmony_ci    "queryContext": {}
591cb0ef41Sopenharmony_ci  },
601cb0ef41Sopenharmony_ci  {
611cb0ef41Sopenharmony_ci    "name": "c",
621cb0ef41Sopenharmony_ci    "version": "1.0.0",
631cb0ef41Sopenharmony_ci    "_id": "c@1.0.0",
641cb0ef41Sopenharmony_ci    "pkgid": "c@1.0.0",
651cb0ef41Sopenharmony_ci    "location": "c",
661cb0ef41Sopenharmony_ci    "path": "{CWD}/prefix/c",
671cb0ef41Sopenharmony_ci    "realpath": "{CWD}/prefix/c",
681cb0ef41Sopenharmony_ci    "resolved": null,
691cb0ef41Sopenharmony_ci    "from": [],
701cb0ef41Sopenharmony_ci    "to": [],
711cb0ef41Sopenharmony_ci    "dev": false,
721cb0ef41Sopenharmony_ci    "inBundle": false,
731cb0ef41Sopenharmony_ci    "deduped": false,
741cb0ef41Sopenharmony_ci    "overridden": false,
751cb0ef41Sopenharmony_ci    "queryContext": {}
761cb0ef41Sopenharmony_ci  }
771cb0ef41Sopenharmony_ci]
781cb0ef41Sopenharmony_ci`
791cb0ef41Sopenharmony_ci
801cb0ef41Sopenharmony_ciexports[`test/lib/commands/query.js TAP linked node > should return linked node res 1`] = `
811cb0ef41Sopenharmony_ci[
821cb0ef41Sopenharmony_ci  {
831cb0ef41Sopenharmony_ci    "name": "a",
841cb0ef41Sopenharmony_ci    "version": "1.0.0",
851cb0ef41Sopenharmony_ci    "_id": "a@1.0.0",
861cb0ef41Sopenharmony_ci    "pkgid": "a@1.0.0",
871cb0ef41Sopenharmony_ci    "location": "a",
881cb0ef41Sopenharmony_ci    "path": "{CWD}/prefix/a",
891cb0ef41Sopenharmony_ci    "realpath": "{CWD}/prefix/a",
901cb0ef41Sopenharmony_ci    "resolved": null,
911cb0ef41Sopenharmony_ci    "from": [],
921cb0ef41Sopenharmony_ci    "to": [],
931cb0ef41Sopenharmony_ci    "dev": false,
941cb0ef41Sopenharmony_ci    "inBundle": false,
951cb0ef41Sopenharmony_ci    "deduped": false,
961cb0ef41Sopenharmony_ci    "overridden": false,
971cb0ef41Sopenharmony_ci    "queryContext": {}
981cb0ef41Sopenharmony_ci  }
991cb0ef41Sopenharmony_ci]
1001cb0ef41Sopenharmony_ci`
1011cb0ef41Sopenharmony_ci
1021cb0ef41Sopenharmony_ciexports[`test/lib/commands/query.js TAP package-lock-only with package lock > should return valid response with only lock info 1`] = `
1031cb0ef41Sopenharmony_ci[
1041cb0ef41Sopenharmony_ci  {
1051cb0ef41Sopenharmony_ci    "name": "project",
1061cb0ef41Sopenharmony_ci    "dependencies": {
1071cb0ef41Sopenharmony_ci      "a": "^1.0.0"
1081cb0ef41Sopenharmony_ci    },
1091cb0ef41Sopenharmony_ci    "pkgid": "project@",
1101cb0ef41Sopenharmony_ci    "location": "",
1111cb0ef41Sopenharmony_ci    "path": "{CWD}/prefix",
1121cb0ef41Sopenharmony_ci    "realpath": "{CWD}/prefix",
1131cb0ef41Sopenharmony_ci    "resolved": null,
1141cb0ef41Sopenharmony_ci    "from": [],
1151cb0ef41Sopenharmony_ci    "to": [
1161cb0ef41Sopenharmony_ci      "node_modules/a"
1171cb0ef41Sopenharmony_ci    ],
1181cb0ef41Sopenharmony_ci    "dev": false,
1191cb0ef41Sopenharmony_ci    "inBundle": false,
1201cb0ef41Sopenharmony_ci    "deduped": false,
1211cb0ef41Sopenharmony_ci    "overridden": false,
1221cb0ef41Sopenharmony_ci    "queryContext": {}
1231cb0ef41Sopenharmony_ci  },
1241cb0ef41Sopenharmony_ci  {
1251cb0ef41Sopenharmony_ci    "version": "1.2.3",
1261cb0ef41Sopenharmony_ci    "resolved": "https://dummy.npmjs.org/a/-/a-1.2.3.tgz",
1271cb0ef41Sopenharmony_ci    "integrity": "sha512-dummy",
1281cb0ef41Sopenharmony_ci    "engines": {
1291cb0ef41Sopenharmony_ci      "node": ">=14.17"
1301cb0ef41Sopenharmony_ci    },
1311cb0ef41Sopenharmony_ci    "name": "a",
1321cb0ef41Sopenharmony_ci    "_id": "a@1.2.3",
1331cb0ef41Sopenharmony_ci    "pkgid": "a@1.2.3",
1341cb0ef41Sopenharmony_ci    "location": "node_modules/a",
1351cb0ef41Sopenharmony_ci    "path": "{CWD}/prefix/node_modules/a",
1361cb0ef41Sopenharmony_ci    "realpath": "{CWD}/prefix/node_modules/a",
1371cb0ef41Sopenharmony_ci    "from": [
1381cb0ef41Sopenharmony_ci      ""
1391cb0ef41Sopenharmony_ci    ],
1401cb0ef41Sopenharmony_ci    "to": [],
1411cb0ef41Sopenharmony_ci    "dev": false,
1421cb0ef41Sopenharmony_ci    "inBundle": false,
1431cb0ef41Sopenharmony_ci    "deduped": false,
1441cb0ef41Sopenharmony_ci    "overridden": false,
1451cb0ef41Sopenharmony_ci    "queryContext": {}
1461cb0ef41Sopenharmony_ci  }
1471cb0ef41Sopenharmony_ci]
1481cb0ef41Sopenharmony_ci`
1491cb0ef41Sopenharmony_ci
1501cb0ef41Sopenharmony_ciexports[`test/lib/commands/query.js TAP recursive tree > should return everything in the tree, accounting for recursion 1`] = `
1511cb0ef41Sopenharmony_ci[
1521cb0ef41Sopenharmony_ci  {
1531cb0ef41Sopenharmony_ci    "name": "project",
1541cb0ef41Sopenharmony_ci    "dependencies": {
1551cb0ef41Sopenharmony_ci      "a": "^1.0.0",
1561cb0ef41Sopenharmony_ci      "b": "^1.0.0"
1571cb0ef41Sopenharmony_ci    },
1581cb0ef41Sopenharmony_ci    "pkgid": "project@",
1591cb0ef41Sopenharmony_ci    "location": "",
1601cb0ef41Sopenharmony_ci    "path": "{CWD}/prefix",
1611cb0ef41Sopenharmony_ci    "realpath": "{CWD}/prefix",
1621cb0ef41Sopenharmony_ci    "resolved": null,
1631cb0ef41Sopenharmony_ci    "from": [],
1641cb0ef41Sopenharmony_ci    "to": [
1651cb0ef41Sopenharmony_ci      "node_modules/a",
1661cb0ef41Sopenharmony_ci      "node_modules/b"
1671cb0ef41Sopenharmony_ci    ],
1681cb0ef41Sopenharmony_ci    "dev": false,
1691cb0ef41Sopenharmony_ci    "inBundle": false,
1701cb0ef41Sopenharmony_ci    "deduped": false,
1711cb0ef41Sopenharmony_ci    "overridden": false,
1721cb0ef41Sopenharmony_ci    "queryContext": {}
1731cb0ef41Sopenharmony_ci  },
1741cb0ef41Sopenharmony_ci  {
1751cb0ef41Sopenharmony_ci    "pkgid": "a@",
1761cb0ef41Sopenharmony_ci    "location": "node_modules/a",
1771cb0ef41Sopenharmony_ci    "path": "{CWD}/prefix/node_modules/a",
1781cb0ef41Sopenharmony_ci    "realpath": "{CWD}/prefix/node_modules/a",
1791cb0ef41Sopenharmony_ci    "resolved": null,
1801cb0ef41Sopenharmony_ci    "from": [
1811cb0ef41Sopenharmony_ci      ""
1821cb0ef41Sopenharmony_ci    ],
1831cb0ef41Sopenharmony_ci    "to": [],
1841cb0ef41Sopenharmony_ci    "dev": false,
1851cb0ef41Sopenharmony_ci    "inBundle": false,
1861cb0ef41Sopenharmony_ci    "deduped": false,
1871cb0ef41Sopenharmony_ci    "overridden": false,
1881cb0ef41Sopenharmony_ci    "queryContext": {}
1891cb0ef41Sopenharmony_ci  },
1901cb0ef41Sopenharmony_ci  {
1911cb0ef41Sopenharmony_ci    "pkgid": "b@",
1921cb0ef41Sopenharmony_ci    "location": "node_modules/b",
1931cb0ef41Sopenharmony_ci    "path": "{CWD}/prefix/node_modules/b",
1941cb0ef41Sopenharmony_ci    "realpath": "{CWD}/prefix/node_modules/b",
1951cb0ef41Sopenharmony_ci    "resolved": null,
1961cb0ef41Sopenharmony_ci    "from": [
1971cb0ef41Sopenharmony_ci      ""
1981cb0ef41Sopenharmony_ci    ],
1991cb0ef41Sopenharmony_ci    "to": [],
2001cb0ef41Sopenharmony_ci    "dev": false,
2011cb0ef41Sopenharmony_ci    "inBundle": false,
2021cb0ef41Sopenharmony_ci    "deduped": false,
2031cb0ef41Sopenharmony_ci    "overridden": false,
2041cb0ef41Sopenharmony_ci    "queryContext": {}
2051cb0ef41Sopenharmony_ci  }
2061cb0ef41Sopenharmony_ci]
2071cb0ef41Sopenharmony_ci`
2081cb0ef41Sopenharmony_ci
2091cb0ef41Sopenharmony_ciexports[`test/lib/commands/query.js TAP simple query > should return root object and direct children 1`] = `
2101cb0ef41Sopenharmony_ci[
2111cb0ef41Sopenharmony_ci  {
2121cb0ef41Sopenharmony_ci    "name": "project",
2131cb0ef41Sopenharmony_ci    "dependencies": {
2141cb0ef41Sopenharmony_ci      "a": "^1.0.0",
2151cb0ef41Sopenharmony_ci      "b": "^1.0.0"
2161cb0ef41Sopenharmony_ci    },
2171cb0ef41Sopenharmony_ci    "peerDependencies": {
2181cb0ef41Sopenharmony_ci      "c": "1.0.0"
2191cb0ef41Sopenharmony_ci    },
2201cb0ef41Sopenharmony_ci    "pkgid": "project@",
2211cb0ef41Sopenharmony_ci    "location": "",
2221cb0ef41Sopenharmony_ci    "path": "{CWD}/prefix",
2231cb0ef41Sopenharmony_ci    "realpath": "{CWD}/prefix",
2241cb0ef41Sopenharmony_ci    "resolved": null,
2251cb0ef41Sopenharmony_ci    "from": [],
2261cb0ef41Sopenharmony_ci    "to": [
2271cb0ef41Sopenharmony_ci      "node_modules/a",
2281cb0ef41Sopenharmony_ci      "node_modules/b"
2291cb0ef41Sopenharmony_ci    ],
2301cb0ef41Sopenharmony_ci    "dev": false,
2311cb0ef41Sopenharmony_ci    "inBundle": false,
2321cb0ef41Sopenharmony_ci    "deduped": false,
2331cb0ef41Sopenharmony_ci    "overridden": false,
2341cb0ef41Sopenharmony_ci    "queryContext": {}
2351cb0ef41Sopenharmony_ci  },
2361cb0ef41Sopenharmony_ci  {
2371cb0ef41Sopenharmony_ci    "pkgid": "a@",
2381cb0ef41Sopenharmony_ci    "location": "node_modules/a",
2391cb0ef41Sopenharmony_ci    "path": "{CWD}/prefix/node_modules/a",
2401cb0ef41Sopenharmony_ci    "realpath": "{CWD}/prefix/node_modules/a",
2411cb0ef41Sopenharmony_ci    "resolved": null,
2421cb0ef41Sopenharmony_ci    "from": [
2431cb0ef41Sopenharmony_ci      ""
2441cb0ef41Sopenharmony_ci    ],
2451cb0ef41Sopenharmony_ci    "to": [],
2461cb0ef41Sopenharmony_ci    "dev": false,
2471cb0ef41Sopenharmony_ci    "inBundle": false,
2481cb0ef41Sopenharmony_ci    "deduped": false,
2491cb0ef41Sopenharmony_ci    "overridden": false,
2501cb0ef41Sopenharmony_ci    "queryContext": {}
2511cb0ef41Sopenharmony_ci  },
2521cb0ef41Sopenharmony_ci  {
2531cb0ef41Sopenharmony_ci    "pkgid": "b@",
2541cb0ef41Sopenharmony_ci    "location": "node_modules/b",
2551cb0ef41Sopenharmony_ci    "path": "{CWD}/prefix/node_modules/b",
2561cb0ef41Sopenharmony_ci    "realpath": "{CWD}/prefix/node_modules/b",
2571cb0ef41Sopenharmony_ci    "resolved": null,
2581cb0ef41Sopenharmony_ci    "from": [
2591cb0ef41Sopenharmony_ci      ""
2601cb0ef41Sopenharmony_ci    ],
2611cb0ef41Sopenharmony_ci    "to": [],
2621cb0ef41Sopenharmony_ci    "dev": false,
2631cb0ef41Sopenharmony_ci    "inBundle": false,
2641cb0ef41Sopenharmony_ci    "deduped": false,
2651cb0ef41Sopenharmony_ci    "overridden": false,
2661cb0ef41Sopenharmony_ci    "queryContext": {}
2671cb0ef41Sopenharmony_ci  }
2681cb0ef41Sopenharmony_ci]
2691cb0ef41Sopenharmony_ci`
2701cb0ef41Sopenharmony_ci
2711cb0ef41Sopenharmony_ciexports[`test/lib/commands/query.js TAP workspace query > should return workspace object 1`] = `
2721cb0ef41Sopenharmony_ci[
2731cb0ef41Sopenharmony_ci  {
2741cb0ef41Sopenharmony_ci    "name": "c",
2751cb0ef41Sopenharmony_ci    "version": "1.0.0",
2761cb0ef41Sopenharmony_ci    "_id": "c@1.0.0",
2771cb0ef41Sopenharmony_ci    "pkgid": "c@1.0.0",
2781cb0ef41Sopenharmony_ci    "location": "c",
2791cb0ef41Sopenharmony_ci    "path": "{CWD}/prefix/c",
2801cb0ef41Sopenharmony_ci    "realpath": "{CWD}/prefix/c",
2811cb0ef41Sopenharmony_ci    "resolved": null,
2821cb0ef41Sopenharmony_ci    "from": [],
2831cb0ef41Sopenharmony_ci    "to": [],
2841cb0ef41Sopenharmony_ci    "dev": false,
2851cb0ef41Sopenharmony_ci    "inBundle": false,
2861cb0ef41Sopenharmony_ci    "deduped": false,
2871cb0ef41Sopenharmony_ci    "overridden": false,
2881cb0ef41Sopenharmony_ci    "queryContext": {}
2891cb0ef41Sopenharmony_ci  }
2901cb0ef41Sopenharmony_ci]
2911cb0ef41Sopenharmony_ci`
292