deno.land / x / esm@v135_2 / test / preact / preact.test.tsx
12345678910111213141516171819import { assertEquals } from "https://deno.land/std@0.180.0/testing/asserts.ts";
import { h } from "http://localhost:8080/preact@10.14.0";import { useState } from "http://localhost:8080/preact@10.14.0/hooks";import render from "http://localhost:8080/preact-render-to-string@6.0.3?deps=preact@10.14.0";
Deno.test("preact", () => { const App = () => { const [message] = useState("Hi :)"); return ( <main> <h1>{message}</h1> </main> ); }; const html = render(<App />); assertEquals(html, "<main><h1>Hi :)</h1></main>");});
Version Info