Skip to content

Commit

Permalink
Demonstrate failing node test
Browse files Browse the repository at this point in the history
  • Loading branch information
epeters-jrmngndr committed Aug 14, 2024
1 parent 4404d3e commit 8186d7b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions frontend/src/pages/HomePage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,15 @@ test("Displays articles as buttons", async () => {
const articleButton2 = screen.getByText(/Article 2/i);
expect(articleButton2).toBeInTheDocument();
});

test("Fail a test and demonstrate CI pipeline", async () => {
render(
<MemoryRouter>
<HomePage />
</MemoryRouter>
);
const messageElement = screen.getByText(/If you are seeing this page, you are in the wrong universe/i);
expect(messageElement).toBeInTheDocument();


});

0 comments on commit 8186d7b

Please sign in to comment.