UNPKG

@violetprotocol/nudge-components

Version:

Components for Nudge's websites and applications.

12 lines (11 loc) 429 B
import { jsx as _jsx } from "react/jsx-runtime"; import { render, screen } from "@testing-library/react"; import { describe, it, expect } from "vitest"; import { Button } from "./Button"; describe("Button", () => { it("renders a button", () => { render(_jsx(Button, { children: "Click me" })); const button = screen.getByRole("button", { name: "Click me" }); expect(button).toBeVisible(); }); });