diff --git a/src/__tests__/Article.test.js b/src/__tests__/Article.test.js index 51d131e02..063aa4e27 100644 --- a/src/__tests__/Article.test.js +++ b/src/__tests__/Article.test.js @@ -7,5 +7,9 @@ import Article from "../components/Article"; test("displays the text 'please pass this test'", () => { render(
); + const element = screen.queryByText("please pass this test"); + + screen.debug(element); + expect(screen.queryByText("please pass this test")).toBeInTheDocument(); }); diff --git a/src/components/Article.js b/src/components/Article.js index 3afd1670d..81abb5a30 100644 --- a/src/components/Article.js +++ b/src/components/Article.js @@ -3,7 +3,7 @@ import React from "react"; function Article() { return (
- {/* please pass this test */} + please pass this test
); } diff --git a/src/components/Header.js b/src/components/Header.js index 2223fb9ca..ffa68eaa2 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -4,7 +4,7 @@ function Header(props) { return (

{/* uncomment the line below to pass the test */} - {/* hello from the Header! */} + hello from the Header!

) }