summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/run/jsx_precompile
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-11-01 21:30:23 +0100
committerGitHub <noreply@github.com>2023-11-01 20:30:23 +0000
commit587f2e0800a55e58b2579758d4278a4129b609c0 (patch)
treeafc3763fd3bd9f7bec35914b961cbb2877a4001f /cli/tests/testdata/run/jsx_precompile
parent658f958fb860e9ad3ea531f26f628f18f3bff63e (diff)
feat: precompile JSX (#20962)
Co-authored-by: Marvin Hagemeister <marvin@deno.com>
Diffstat (limited to 'cli/tests/testdata/run/jsx_precompile')
-rw-r--r--cli/tests/testdata/run/jsx_precompile/no_pragma.out3
-rw-r--r--cli/tests/testdata/run/jsx_precompile/no_pragma.tsx3
2 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/jsx_precompile/no_pragma.out b/cli/tests/testdata/run/jsx_precompile/no_pragma.out
new file mode 100644
index 000000000..437995923
--- /dev/null
+++ b/cli/tests/testdata/run/jsx_precompile/no_pragma.out
@@ -0,0 +1,3 @@
+Download http://localhost:4545/jsx/jsx-precompile/index.ts
+Check file:///[WILDCARD]/run/jsx_precompile/no_pragma.tsx
+imported http://localhost:4545/jsx/jsx-precompile/index.ts
diff --git a/cli/tests/testdata/run/jsx_precompile/no_pragma.tsx b/cli/tests/testdata/run/jsx_precompile/no_pragma.tsx
new file mode 100644
index 000000000..7ba21d80d
--- /dev/null
+++ b/cli/tests/testdata/run/jsx_precompile/no_pragma.tsx
@@ -0,0 +1,3 @@
+export function A() {
+ return <h1>hello</h1>;
+}