UNPKG

@crossed/primitive

Version:

A universal & performant styling library for React Native, Next.js & React

17 lines (16 loc) 601 B
import { jsx } from "react/jsx-runtime"; import "@testing-library/jest-dom"; import { render, screen } from "@crossed/test"; import { createListMain } from "../List"; import { forwardRef } from "react"; const Comp = forwardRef((p, ref) => /* @__PURE__ */ jsx("div", { ...p, ref })); const NewComp = createListMain(Comp); describe("createListMain", () => { test("init", async () => { const child = "Pass child"; render(/* @__PURE__ */ jsx(NewComp, { children: child })); await screen.findByText(child); await screen.findByRole("list"); }); }); //# sourceMappingURL=List.spec.js.map