summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/Component.tsx1
-rw-r--r--cli/tests/integration_tests.rs5
-rw-r--r--cli/tests/tsx_imports.ts1
-rw-r--r--cli/tests/tsx_imports.ts.out2
4 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/Component.tsx b/cli/tests/Component.tsx
new file mode 100644
index 000000000..34208329b
--- /dev/null
+++ b/cli/tests/Component.tsx
@@ -0,0 +1 @@
+import "./046_jsx_test.tsx"; \ No newline at end of file
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 457a345dd..b3f792b4e 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -1723,6 +1723,11 @@ itest!(disallow_http_from_https_ts {
exit_code: 1,
});
+itest!(tsx_imports {
+ args: "run --reload tsx_imports.ts",
+ output: "tsx_imports.ts.out",
+});
+
itest!(fix_js_import_js {
args: "run --quiet --reload fix_js_import_js.ts",
output: "fix_js_import_js.ts.out",
diff --git a/cli/tests/tsx_imports.ts b/cli/tests/tsx_imports.ts
new file mode 100644
index 000000000..44ba10b7a
--- /dev/null
+++ b/cli/tests/tsx_imports.ts
@@ -0,0 +1 @@
+import "./Component.tsx";
diff --git a/cli/tests/tsx_imports.ts.out b/cli/tests/tsx_imports.ts.out
new file mode 100644
index 000000000..4ea4308b1
--- /dev/null
+++ b/cli/tests/tsx_imports.ts.out
@@ -0,0 +1,2 @@
+Compile [WILDCARD]tsx_imports.ts
+{ factory: [Function: View], props: null, children: [] }