summaryrefslogtreecommitdiff
path: root/tests/testdata/jsr/jsx_with_no_pragmas
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/jsr/jsx_with_no_pragmas')
-rw-r--r--tests/testdata/jsr/jsx_with_no_pragmas/main.out7
-rw-r--r--tests/testdata/jsr/jsx_with_no_pragmas/main.ts3
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/testdata/jsr/jsx_with_no_pragmas/main.out b/tests/testdata/jsr/jsx_with_no_pragmas/main.out
new file mode 100644
index 000000000..c3977fe22
--- /dev/null
+++ b/tests/testdata/jsr/jsx_with_no_pragmas/main.out
@@ -0,0 +1,7 @@
+Download [WILDCARD]
+error: Uncaught (in promise) ReferenceError: React is not defined
+ return renderToString(<div>foo.jsx</div>);
+ ^
+ at render (http://127.0.0.1:4250/@denotest/jsx-with-no-pragmas/1.0.0/foo.jsx:4:25)
+ at render (http://127.0.0.1:4250/@denotest/jsx-with-no-pragmas/1.0.0/mod.ts:5:15)
+ at file:///[WILDCARD]/jsr/jsx_with_no_pragmas/main.ts:3:1
diff --git a/tests/testdata/jsr/jsx_with_no_pragmas/main.ts b/tests/testdata/jsr/jsx_with_no_pragmas/main.ts
new file mode 100644
index 000000000..9d6e5a41e
--- /dev/null
+++ b/tests/testdata/jsr/jsx_with_no_pragmas/main.ts
@@ -0,0 +1,3 @@
+import { render } from "jsr:@denotest/jsx-with-no-pragmas@1.0.0";
+
+render();