summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/jsr/deps
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-09-18 10:46:44 -0400
committerGitHub <noreply@github.com>2023-09-18 10:46:44 -0400
commit0709c051f83c181206f6653396f5428df66ed74f (patch)
tree9360ce6cfc2c3f3f53a8a7af0f9d3bdc9e1ee553 /cli/tests/testdata/jsr/deps
parent4fcd9a0de815a756e5f173e1bc1f84d90ba39ec7 (diff)
feat(unstable): package manager (#20517)
Adds an experimental unstable built-in package manager to Deno, but it is currently not usable because the registry infrastructure hasn't been setup and it points to a non-existent url by default. The default registry url can be configured via the `DENO_REGISTRY_URL` environment variable.
Diffstat (limited to 'cli/tests/testdata/jsr/deps')
-rw-r--r--cli/tests/testdata/jsr/deps/main.out13
-rw-r--r--cli/tests/testdata/jsr/deps/main.ts3
-rw-r--r--cli/tests/testdata/jsr/deps/main_info.out22
3 files changed, 38 insertions, 0 deletions
diff --git a/cli/tests/testdata/jsr/deps/main.out b/cli/tests/testdata/jsr/deps/main.out
new file mode 100644
index 000000000..388e1a6d5
--- /dev/null
+++ b/cli/tests/testdata/jsr/deps/main.out
@@ -0,0 +1,13 @@
+Download http://localhost:4545/jsr/registry/@denotest/deps/meta.json
+Download http://localhost:4545/jsr/registry/@denotest/deps/1.0.0_meta.json
+Download http://localhost:4545/jsr/registry/@denotest/module_graph/meta.json
+Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/meta.json
+Download http://localhost:4545/jsr/registry/@denotest/module_graph/1.4.0_meta.json
+Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.1_meta.json
+[UNORDERED_START]
+Download http://localhost:4545/jsr/registry/@denotest/deps/1.0.0/mod.ts
+Download http://localhost:4545/jsr/registry/@denotest/module_graph/1.4.0/other.ts
+Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.1/mod.ts
+Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.1/TestClass.ts
+[UNORDERED_END]
+{ version: "0.1.1", other: Other {} }
diff --git a/cli/tests/testdata/jsr/deps/main.ts b/cli/tests/testdata/jsr/deps/main.ts
new file mode 100644
index 000000000..25b13a681
--- /dev/null
+++ b/cli/tests/testdata/jsr/deps/main.ts
@@ -0,0 +1,3 @@
+import value from "jsr:@denotest/deps/mod.ts";
+
+console.log(value);
diff --git a/cli/tests/testdata/jsr/deps/main_info.out b/cli/tests/testdata/jsr/deps/main_info.out
new file mode 100644
index 000000000..c100e1363
--- /dev/null
+++ b/cli/tests/testdata/jsr/deps/main_info.out
@@ -0,0 +1,22 @@
+Download http://localhost:4545/jsr/registry/@denotest/deps/meta.json
+Download http://localhost:4545/jsr/registry/@denotest/deps/1.0.0_meta.json
+Download http://localhost:4545/jsr/registry/@denotest/module_graph/meta.json
+Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/meta.json
+Download http://localhost:4545/jsr/registry/@denotest/module_graph/1.4.0_meta.json
+Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.1_meta.json
+[UNORDERED_START]
+Download http://localhost:4545/jsr/registry/@denotest/deps/1.0.0/mod.ts
+Download http://localhost:4545/jsr/registry/@denotest/module_graph/1.4.0/other.ts
+Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.1/mod.ts
+Download http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.1/TestClass.ts
+[UNORDERED_END]
+local: [WILDCARD]main.ts
+type: TypeScript
+dependencies: 4 unique
+size: [WILDCARD]
+
+file:///[WILDCARD]main.ts ([WILDCARD])
+└─┬ http://localhost:4545/jsr/registry/@denotest/deps/1.0.0/mod.ts ([WILDCARD])
+ ├── http://localhost:4545/jsr/registry/@denotest/module_graph/1.4.0/other.ts ([WILDCARD])
+ └─┬ http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.1/mod.ts ([WILDCARD])
+ └── http://localhost:4545/jsr/registry/@denotest/no_module_graph/0.1.1/TestClass.ts ([WILDCARD])