summaryrefslogtreecommitdiff
path: root/tests/testdata/check/jsx_not_checked/main.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/check/jsx_not_checked/main.jsx')
-rw-r--r--tests/testdata/check/jsx_not_checked/main.jsx21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/testdata/check/jsx_not_checked/main.jsx b/tests/testdata/check/jsx_not_checked/main.jsx
new file mode 100644
index 000000000..8de05f9f7
--- /dev/null
+++ b/tests/testdata/check/jsx_not_checked/main.jsx
@@ -0,0 +1,21 @@
+// should not error about jsx-runtime not being found in types here
+/** @jsxImportSource npm:react@18.2.0 */
+
+import "./other.ts";
+
+export default (
+ <>
+ <h1>Hello world</h1>
+ <p>This is a JSX page</p>
+ </>
+);
+
+/**
+ * @param {number} a
+ * @param {number} b
+ */
+function add(a, b) {
+ return a + b;
+}
+
+console.log(add("1", "2"));