Skip to content

Commit

Permalink
adjust more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Dec 6, 2024
1 parent 1fa1af7 commit 625dee1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration-test/jest/src/App.test.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { render, screen } from "@testing-library/react";
import { render, screen, act } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import "@testing-library/jest-dom";

Expand All @@ -8,7 +8,7 @@ import { resetApolloClientSingletons } from "@apollo/experimental-nextjs-app-sup
afterEach(resetApolloClientSingletons);

test("loads data", async () => {
render(<App />);
await act(async () => render(<App />));

expect(screen.getByText("Loading...")).toBeInTheDocument();
expect(
Expand All @@ -18,7 +18,7 @@ test("loads data", async () => {
});

test("is interactive", async () => {
render(<App />);
await act(async () => render(<App />));

const counter = await screen.findByTestId("counter");
expect(counter.textContent).toBe("0");
Expand Down

0 comments on commit 625dee1

Please sign in to comment.