summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-10-25 13:56:40 -0400
committerGitHub <noreply@github.com>2024-10-25 17:56:40 +0000
commite70341e65e9f4e44811210c9b24e67a29b2c497a (patch)
treee5ed0fcc0ade4975b09021be29720d4de741be09 /tests/specs
parent4626b11d032e964c64887e884f24b4359d3642bf (diff)
fix(check): ignore resolving `jsxImportSource` when jsx is not used in graph (#26548)
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/check/jsx_import_source_not_in_graph/__test__.jsonc4
-rw-r--r--tests/specs/check/jsx_import_source_not_in_graph/deno.json6
-rw-r--r--tests/specs/check/jsx_import_source_not_in_graph/main.out1
-rw-r--r--tests/specs/check/jsx_import_source_not_in_graph/main.ts1
4 files changed, 12 insertions, 0 deletions
diff --git a/tests/specs/check/jsx_import_source_not_in_graph/__test__.jsonc b/tests/specs/check/jsx_import_source_not_in_graph/__test__.jsonc
new file mode 100644
index 000000000..de0339cfb
--- /dev/null
+++ b/tests/specs/check/jsx_import_source_not_in_graph/__test__.jsonc
@@ -0,0 +1,4 @@
+{
+ "args": "check main.ts",
+ "output": "main.out"
+}
diff --git a/tests/specs/check/jsx_import_source_not_in_graph/deno.json b/tests/specs/check/jsx_import_source_not_in_graph/deno.json
new file mode 100644
index 000000000..219ef515f
--- /dev/null
+++ b/tests/specs/check/jsx_import_source_not_in_graph/deno.json
@@ -0,0 +1,6 @@
+{
+ "compilerOptions": {
+ "jsx": "react-jsx",
+ "jsxImportSource": "npm:preact"
+ }
+}
diff --git a/tests/specs/check/jsx_import_source_not_in_graph/main.out b/tests/specs/check/jsx_import_source_not_in_graph/main.out
new file mode 100644
index 000000000..1830c3186
--- /dev/null
+++ b/tests/specs/check/jsx_import_source_not_in_graph/main.out
@@ -0,0 +1 @@
+Check file:///[WILDLINE]/main.ts
diff --git a/tests/specs/check/jsx_import_source_not_in_graph/main.ts b/tests/specs/check/jsx_import_source_not_in_graph/main.ts
new file mode 100644
index 000000000..bf6b81796
--- /dev/null
+++ b/tests/specs/check/jsx_import_source_not_in_graph/main.ts
@@ -0,0 +1 @@
+console.log("Hello");