summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-07-09 17:07:16 -0400
committerGitHub <noreply@github.com>2024-07-09 17:07:16 -0400
commit43d10a558b72ef4a079358521d22447d095e0097 (patch)
tree91ea25bd876639e7535f726cade87df1ffc0a869 /tests
parente5c3c21e95bd6c8cfb0d26de8f79684709d64e81 (diff)
fix: do not download compilerOptions -> types when not type checking (#24473)
Closes https://github.com/denoland/deno/issues/22738
Diffstat (limited to 'tests')
-rw-r--r--tests/specs/run/skips_compiler_option_types/__test__.jsonc6
-rw-r--r--tests/specs/run/skips_compiler_option_types/deno.json8
-rw-r--r--tests/specs/run/skips_compiler_option_types/main.out1
-rw-r--r--tests/specs/run/skips_compiler_option_types/main.ts1
4 files changed, 16 insertions, 0 deletions
diff --git a/tests/specs/run/skips_compiler_option_types/__test__.jsonc b/tests/specs/run/skips_compiler_option_types/__test__.jsonc
new file mode 100644
index 000000000..bd2d5aaa2
--- /dev/null
+++ b/tests/specs/run/skips_compiler_option_types/__test__.jsonc
@@ -0,0 +1,6 @@
+{
+ // this was previously downloading the "types" from the compilerOptions
+ // even for deno run with no type checking
+ "args": "run main.ts",
+ "output": "main.out"
+}
diff --git a/tests/specs/run/skips_compiler_option_types/deno.json b/tests/specs/run/skips_compiler_option_types/deno.json
new file mode 100644
index 000000000..92d0923b9
--- /dev/null
+++ b/tests/specs/run/skips_compiler_option_types/deno.json
@@ -0,0 +1,8 @@
+{
+ "lock": false,
+ "compilerOptions": {
+ "types": [
+ "https://localhost@4545/non-existent/@types/react@18.0.28"
+ ]
+ }
+}
diff --git a/tests/specs/run/skips_compiler_option_types/main.out b/tests/specs/run/skips_compiler_option_types/main.out
new file mode 100644
index 000000000..45b983be3
--- /dev/null
+++ b/tests/specs/run/skips_compiler_option_types/main.out
@@ -0,0 +1 @@
+hi
diff --git a/tests/specs/run/skips_compiler_option_types/main.ts b/tests/specs/run/skips_compiler_option_types/main.ts
new file mode 100644
index 000000000..d914c6066
--- /dev/null
+++ b/tests/specs/run/skips_compiler_option_types/main.ts
@@ -0,0 +1 @@
+console.log("hi");