import * as React from "react"; import { render } from "reakit-test-utils"; import { Dialog } from "../Dialog"; jest.mock("body-scroll-lock"); const props: Parameters[0] = { baseId: "base", "aria-label": "dialog", }; test("render", () => { const { baseElement } = render(dialog); expect(baseElement).toMatchInlineSnapshot(`
`); }); test("render visible", () => { const { baseElement } = render( dialog ); expect(baseElement).toMatchInlineSnapshot(`
`); }); test("render non-modal", () => { const { container } = render( test ); expect(container).toMatchInlineSnapshot(`
`); });