9 lines
246 B
JavaScript
Raw Normal View History

2022-12-09 16:59:11 +05:30
import { render, screen } from "@testing-library/react";
import App from "./App";
2022-06-17 10:48:15 +10:00
2022-12-09 16:59:11 +05:30
test("renders learn react link", () => {
2022-06-17 10:48:15 +10:00
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});