deno.land / x / esm@v135_2 / test / react-18-dev / react.test.tsx

react.test.tsx
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { assert } from "https://deno.land/std@0.180.0/testing/asserts.ts";
import React from "http://localhost:8080/react@18&dev";import { renderToString } from "http://localhost:8080/react-dom@18&dev/server";
Deno.test("react@18(dev)", () => { const html = renderToString( <main> <h1>Hi :)</h1> </main>, ); assert( typeof html === "string" && html.includes("<h1>Hi :)</h1>") && html.includes("<main") && html.includes("</main>"), );});
esm

Version Info

Tagged at
a year ago