summaryrefslogtreecommitdiff
path: root/tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-05-06 21:06:01 -0400
committerGitHub <noreply@github.com>2024-05-07 01:06:01 +0000
commit1587387bccb6dbecd85f5141dd7543f013d47cd8 (patch)
treeb9829c3e50442deff360cf664555935a0d16a4db /tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0
parent87d1ead7d09638172b0e397c8209c759666514da (diff)
chore(test): move npm registries to separate servers and to the `tests/registry` folder (#23717)
1. Moves the npm registries to their own dedicated ports. 2. Moves the data files out of `tests/testdata/npm/registry` to `tests/registry/npm`.
Diffstat (limited to 'tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0')
-rw-r--r--tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0/foo.jsx5
-rw-r--r--tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0/foo.tsx5
-rw-r--r--tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0/mod.ts7
3 files changed, 17 insertions, 0 deletions
diff --git a/tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0/foo.jsx b/tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0/foo.jsx
new file mode 100644
index 000000000..ae310a74e
--- /dev/null
+++ b/tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0/foo.jsx
@@ -0,0 +1,5 @@
+import { renderToString } from "npm:preact-render-to-string";
+
+export default function render() {
+ return renderToString(<div>foo.jsx</div>);
+}
diff --git a/tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0/foo.tsx b/tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0/foo.tsx
new file mode 100644
index 000000000..021c2d49e
--- /dev/null
+++ b/tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0/foo.tsx
@@ -0,0 +1,5 @@
+import { renderToString } from "npm:preact-render-to-string";
+
+export default function render() {
+ return renderToString(<div>foo.tsx</div>);
+}
diff --git a/tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0/mod.ts b/tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0/mod.ts
new file mode 100644
index 000000000..05c549f64
--- /dev/null
+++ b/tests/registry/jsr/@denotest/jsx-with-no-pragmas/1.0.0/mod.ts
@@ -0,0 +1,7 @@
+import renderJsx from "./foo.jsx";
+import renderTsx from "./foo.tsx";
+
+export function render() {
+ console.log(renderJsx());
+ console.log(renderTsx());
+}