summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/info
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-10-31 10:25:46 -0400
committerGitHub <noreply@github.com>2022-10-31 10:25:46 -0400
commitcb08b4683fc3a8feadc4a7590dc2db922ca3a6ed (patch)
treef5a7d63d351a22742e485da6e8726c58ed88c1eb /cli/tests/testdata/npm/info
parentc962cd424190d094b79eb7697a1453d6d87c37a9 (diff)
feat(unstable/npm): `deno info --json` support for npm specifiers (#16472)
Diffstat (limited to 'cli/tests/testdata/npm/info')
-rw-r--r--cli/tests/testdata/npm/info/chalk.out10
-rw-r--r--cli/tests/testdata/npm/info/chalk_json.out54
2 files changed, 64 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/info/chalk.out b/cli/tests/testdata/npm/info/chalk.out
new file mode 100644
index 000000000..89ea05e71
--- /dev/null
+++ b/cli/tests/testdata/npm/info/chalk.out
@@ -0,0 +1,10 @@
+type: Unknown
+dependencies: 5 unique
+size: [WILDCARD]
+
+npm:chalk@4 - 4.1.2 ([WILDCARD])
+├─┬ npm:ansi-styles@4.3.0 ([WILDCARD])
+│ └─┬ npm:color-convert@2.0.1 ([WILDCARD])
+│ └── npm:color-name@1.1.4 ([WILDCARD])
+└─┬ npm:supports-color@7.2.0 ([WILDCARD])
+ └── npm:has-flag@4.0.0 ([WILDCARD])
diff --git a/cli/tests/testdata/npm/info/chalk_json.out b/cli/tests/testdata/npm/info/chalk_json.out
new file mode 100644
index 000000000..f6673d032
--- /dev/null
+++ b/cli/tests/testdata/npm/info/chalk_json.out
@@ -0,0 +1,54 @@
+{
+ "roots": [
+ "npm:chalk@4"
+ ],
+ "modules": [
+ {
+ "kind": "npm",
+ "specifier": "npm:chalk@4",
+ "npmPackage": "chalk@4.1.2"
+ }
+ ],
+ "redirects": {},
+ "npmPackages": {
+ "ansi-styles@4.3.0": {
+ "name": "ansi-styles",
+ "version": "4.3.0",
+ "dependencies": [
+ "color-convert@2.0.1"
+ ]
+ },
+ "chalk@4.1.2": {
+ "name": "chalk",
+ "version": "4.1.2",
+ "dependencies": [
+ "ansi-styles@4.3.0",
+ "supports-color@7.2.0"
+ ]
+ },
+ "color-convert@2.0.1": {
+ "name": "color-convert",
+ "version": "2.0.1",
+ "dependencies": [
+ "color-name@1.1.4"
+ ]
+ },
+ "color-name@1.1.4": {
+ "name": "color-name",
+ "version": "1.1.4",
+ "dependencies": []
+ },
+ "has-flag@4.0.0": {
+ "name": "has-flag",
+ "version": "4.0.0",
+ "dependencies": []
+ },
+ "supports-color@7.2.0": {
+ "name": "supports-color",
+ "version": "7.2.0",
+ "dependencies": [
+ "has-flag@4.0.0"
+ ]
+ }
+ }
+}