Notice
Recent Posts
Recent Comments
Link
보조기억장치
Test Suites Group 본문
import { render, screen } from "@testing-library/react";
import Greeting from "./Greeting";
// 테스트 그룹을 만들때는 아래와 같이 describe 에 작성
describe("Greeting component", () => {
test("renders Hello World as a text", () => {
render(<Greeting />);
const helloWorldElement = screen.getByText("Hello World", { exact: false });
expect(helloWorldElement).toBeInTheDocument();
});
});
'React' 카테고리의 다른 글
Install tailwindcss with Next.js (0) | 2023.05.03 |
---|---|
Material UI(MUI) DataGrid 적용하 (0) | 2023.04.28 |
Matched leaf route at location "/" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page. (0) | 2023.04.07 |
Emmet in Visual Studio Code 참고하기 (0) | 2023.03.29 |
Redux 함수형, Class 형 예 (0) | 2023.02.28 |