UNPKG

@violetprotocol/nudge-components

Version:

Components for Nudge's websites and applications.

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