Skip to content

Commit

Permalink
ran yarn && npx yarn-deduplicate and then yarn fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Cremer authored and Fernando Cremer committed Nov 3, 2023
1 parent a0ef8f0 commit 25975b0
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 885 deletions.
9 changes: 3 additions & 6 deletions plugins/github-issues/src/components/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { render, screen, waitFor } from "@testing-library/react";
import { render } from "@testing-library/react";
import App from "./App";
import { waitForLoading } from '../../../testUtils/testUtils';
import { waitForLoading } from "../../../testUtils/testUtils";

fetchMock.mockResponse(
JSON.stringify({
})
);
fetchMock.mockResponse(JSON.stringify({}));
describe("App", () => {
it("verifies that the plugin works", async () => {
render(<App />);
Expand Down
11 changes: 4 additions & 7 deletions plugins/github-issues/src/components/Issues.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { render, screen, waitFor } from "@testing-library/react";
import { render, screen } from "@testing-library/react";
import Issues from "./Issues";
import { waitForLoading } from "../../../testUtils/testUtils";

const mockIssue = [
{
Expand Down Expand Up @@ -202,9 +203,7 @@ describe("Issues", () => {

render(<Issues entityYaml={serviceYaml} />);
expect(screen.queryByText("Loading")).toBeInTheDocument();
await waitFor(() => {
expect(screen.queryByText("Loading")).not.toBeInTheDocument();
});
await waitForLoading();
expect(screen.queryByText("Number")).toBeInTheDocument();
expect(screen.queryByText("1347")).toBeInTheDocument();
});
Expand All @@ -219,9 +218,7 @@ describe("Issues", () => {
render(<Issues entityYaml={serviceYaml} />);
expect(screen.queryByText("Loading")).toBeInTheDocument();

await waitFor(() => {
expect(screen.queryByText("Loading")).not.toBeInTheDocument();
});
await waitForLoading();
expect(
screen.queryByText(
"We could not find any issues associated with this entity"
Expand Down
Loading

0 comments on commit 25975b0

Please sign in to comment.