summaryrefslogtreecommitdiff
path: root/tests/specs/jsr/deps
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/jsr/deps')
-rw-r--r--tests/specs/jsr/deps/__test__.jsonc11
-rw-r--r--tests/specs/jsr/deps/main.out13
-rw-r--r--tests/specs/jsr/deps/main.ts3
-rw-r--r--tests/specs/jsr/deps/main_info.out22
4 files changed, 49 insertions, 0 deletions
diff --git a/tests/specs/jsr/deps/__test__.jsonc b/tests/specs/jsr/deps/__test__.jsonc
new file mode 100644
index 000000000..2528003b5
--- /dev/null
+++ b/tests/specs/jsr/deps/__test__.jsonc
@@ -0,0 +1,11 @@
+{
+ "base": "jsr",
+ "steps": [{
+ "args": "run main.ts",
+ "output": "main.out"
+ }, {
+ "cleanDenoDir": true,
+ "args": "info main.ts",
+ "output": "main_info.out"
+ }]
+}
diff --git a/tests/specs/jsr/deps/main.out b/tests/specs/jsr/deps/main.out
new file mode 100644
index 000000000..621703c4b
--- /dev/null
+++ b/tests/specs/jsr/deps/main.out
@@ -0,0 +1,13 @@
+Download http://127.0.0.1:4250/@denotest/deps/meta.json
+Download http://127.0.0.1:4250/@denotest/deps/1.0.0_meta.json
+Download http://127.0.0.1:4250/@denotest/module_graph/meta.json
+Download http://127.0.0.1:4250/@denotest/no_module_graph/meta.json
+Download http://127.0.0.1:4250/@denotest/module_graph/1.4.0_meta.json
+Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1_meta.json
+[UNORDERED_START]
+Download http://127.0.0.1:4250/@denotest/deps/1.0.0/mod.ts
+Download http://127.0.0.1:4250/@denotest/module_graph/1.4.0/other.ts
+Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1/mod.ts
+Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1/TestClass.ts
+[UNORDERED_END]
+{ version: "0.1.1", other: Other {} }
diff --git a/tests/specs/jsr/deps/main.ts b/tests/specs/jsr/deps/main.ts
new file mode 100644
index 000000000..f48255299
--- /dev/null
+++ b/tests/specs/jsr/deps/main.ts
@@ -0,0 +1,3 @@
+import value from "jsr:@denotest/deps";
+
+console.log(value);
diff --git a/tests/specs/jsr/deps/main_info.out b/tests/specs/jsr/deps/main_info.out
new file mode 100644
index 000000000..c4d412707
--- /dev/null
+++ b/tests/specs/jsr/deps/main_info.out
@@ -0,0 +1,22 @@
+Download http://127.0.0.1:4250/@denotest/deps/meta.json
+Download http://127.0.0.1:4250/@denotest/deps/1.0.0_meta.json
+Download http://127.0.0.1:4250/@denotest/module_graph/meta.json
+Download http://127.0.0.1:4250/@denotest/no_module_graph/meta.json
+Download http://127.0.0.1:4250/@denotest/module_graph/1.4.0_meta.json
+Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1_meta.json
+[UNORDERED_START]
+Download http://127.0.0.1:4250/@denotest/deps/1.0.0/mod.ts
+Download http://127.0.0.1:4250/@denotest/module_graph/1.4.0/other.ts
+Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1/mod.ts
+Download http://127.0.0.1:4250/@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://127.0.0.1:4250/@denotest/deps/1.0.0/mod.ts ([WILDCARD])
+ ├── http://127.0.0.1:4250/@denotest/module_graph/1.4.0/other.ts ([WILDCARD])
+ └─┬ http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1/mod.ts ([WILDCARD])
+ └── http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1/TestClass.ts ([WILDCARD])