// import React from 'react'; import * as React from "react"; import { ExampleButton } from "./ExampleButton"; import { render, screen, fireEvent, waitForElement } from "@testing-library/react"; describe("testing button", () => { test("should do something", () => { // Given const onClick = jest.fn(); const myLabel = "Hello world"; // When const { container, getByText, getByRole } = render( {myLabel} ); // Then expect(screen.getByText(myLabel)).toBeInTheDocument(); }); });