diff options
author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-10-23 15:01:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-23 15:01:45 -0700 |
commit | 69e1d7a4edb45c8b4cb15f64ee89cec8a693be5e (patch) | |
tree | 026eb8726df9b3da5cdcff6fedb28a9512d8b2c8 /tests/specs/install | |
parent | 92ed4d38dbef98b9353d6dd6d96abb400be56f9f (diff) |
fix(install): cache type only module deps in `deno install` (#26497)
Fixes https://github.com/denoland/deno/issues/26180.
Diffstat (limited to 'tests/specs/install')
-rw-r--r-- | tests/specs/install/type_only_import/__test__.jsonc | 10 | ||||
-rw-r--r-- | tests/specs/install/type_only_import/install.out | 6 | ||||
-rw-r--r-- | tests/specs/install/type_only_import/main.ts | 3 | ||||
-rw-r--r-- | tests/specs/install/type_only_import/run.out | 2 |
4 files changed, 21 insertions, 0 deletions
diff --git a/tests/specs/install/type_only_import/__test__.jsonc b/tests/specs/install/type_only_import/__test__.jsonc new file mode 100644 index 000000000..22b8134ac --- /dev/null +++ b/tests/specs/install/type_only_import/__test__.jsonc @@ -0,0 +1,10 @@ +{ + "tempDir": true, + "steps": [ + { "args": "install -e main.ts", "output": "install.out" }, + { + "args": "run --check --cached-only main.ts", + "output": "run.out" + } + ] +} diff --git a/tests/specs/install/type_only_import/install.out b/tests/specs/install/type_only_import/install.out new file mode 100644 index 000000000..1bdbec4e5 --- /dev/null +++ b/tests/specs/install/type_only_import/install.out @@ -0,0 +1,6 @@ +Download http://127.0.0.1:4250/@denotest/type-only-import/meta.json +Download http://127.0.0.1:4250/@denotest/type-only-import/1.0.0_meta.json +[UNORDERED_START] +Download http://127.0.0.1:4250/@denotest/type-only-import/1.0.0/mod.ts +Download http://127.0.0.1:4250/@denotest/type-only-import/1.0.0/foo.ts +[UNORDERED_END] diff --git a/tests/specs/install/type_only_import/main.ts b/tests/specs/install/type_only_import/main.ts new file mode 100644 index 000000000..bf22935a2 --- /dev/null +++ b/tests/specs/install/type_only_import/main.ts @@ -0,0 +1,3 @@ +import { foo } from "jsr:@denotest/type-only-import"; + +console.log(foo.bar); diff --git a/tests/specs/install/type_only_import/run.out b/tests/specs/install/type_only_import/run.out new file mode 100644 index 000000000..d36ac8aa3 --- /dev/null +++ b/tests/specs/install/type_only_import/run.out @@ -0,0 +1,2 @@ +Check [WILDCARD]main.ts +foo |