summaryrefslogtreecommitdiff
path: root/tests/specs/jsr/jsx_with_no_pragmas
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/jsr/jsx_with_no_pragmas')
-rw-r--r--tests/specs/jsr/jsx_with_no_pragmas/__test__.jsonc6
-rw-r--r--tests/specs/jsr/jsx_with_no_pragmas/main.out7
-rw-r--r--tests/specs/jsr/jsx_with_no_pragmas/main.ts3
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/specs/jsr/jsx_with_no_pragmas/__test__.jsonc b/tests/specs/jsr/jsx_with_no_pragmas/__test__.jsonc
new file mode 100644
index 000000000..c2a269ea6
--- /dev/null
+++ b/tests/specs/jsr/jsx_with_no_pragmas/__test__.jsonc
@@ -0,0 +1,6 @@
+{
+ "base": "jsr",
+ "args": "run main.ts",
+ "output": "main.out",
+ "exitCode": 1
+}
diff --git a/tests/specs/jsr/jsx_with_no_pragmas/main.out b/tests/specs/jsr/jsx_with_no_pragmas/main.out
new file mode 100644
index 000000000..c3977fe22
--- /dev/null
+++ b/tests/specs/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/specs/jsr/jsx_with_no_pragmas/main.ts b/tests/specs/jsr/jsx_with_no_pragmas/main.ts
new file mode 100644
index 000000000..9d6e5a41e
--- /dev/null
+++ b/tests/specs/jsr/jsx_with_no_pragmas/main.ts
@@ -0,0 +1,3 @@
+import { render } from "jsr:@denotest/jsx-with-no-pragmas@1.0.0";
+
+render();