diff --git a/README.md b/README.md index 4ed01d7..6bd0f98 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ describe("App", () => { test("should render greeting", () => { const { getByText } = render(App, { props: { name: "world" } }); - expect(getByText("Hello world!")); + expect(getByText("Hello world!")).toBeInTheDocument(); }); test("should change button text after click", async () => {