Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: integration tests #832

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

fix: integration tests #832

wants to merge 5 commits into from

Conversation

miliPaoletti
Copy link
Contributor

🧙 Description

Update integrations tests in order to work.
There are some errors that we have to wait for vitest to update vitest-dev/vitest#4905. Once they update that, all test should pass

Ticket #

✅ Checklist

  • Acceptance Criteria described in the ticket are met
  • Texts and strings are in the related i18n file
  • Utilities have unit tests
  • User stories and functionalities have integration or e2e tests
  • If adding a new token or network
    • Registry package is updated
    • Asset images are added
  • Related packages.json are upgraded
  • Changelog is updated

Copy link

vercel bot commented Jan 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
evmos-dapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 1, 2024 1:57pm
governance-evmos-dapp ❌ Failed (Inspect) Feb 1, 2024 1:57pm
portfolio-evmos-dapp ❌ Failed (Inspect) Feb 1, 2024 1:57pm
staking-evmos-dapp ❌ Failed (Inspect) Feb 1, 2024 1:57pm


vi.mock("@tanstack/react-query-next-experimental", () => ({
ReactQueryStreamedHydration: (props: PropsWithChildren<{}>) => props.children,
}));

vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 6 locations. Consider refactoring.

votingStartTime: "",
votingEndTime: "",
tallyResults: [],
vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 6 locations. Consider refactoring.

@@ -19,6 +22,16 @@ const TEXT = "Test";
vi.mock("@tanstack/react-query-next-experimental", () => ({
ReactQueryStreamedHydration: (props: PropsWithChildren<{}>) => props.children,
}));

vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 6 locations. Consider refactoring.

@@ -15,6 +19,16 @@ vi.mock("@tanstack/react-query-next-experimental", () => ({
ReactQueryStreamedHydration: (props: PropsWithChildren<{}>) => props.children,
}));

vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 6 locations. Consider refactoring.

@@ -21,6 +22,16 @@ vi.mock("@tanstack/react-query-next-experimental", () => ({
ReactQueryStreamedHydration: (props: PropsWithChildren<{}>) => props.children,
}));

vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 6 locations. Consider refactoring.


vi.mock("@tanstack/react-query-next-experimental", () => ({
ReactQueryStreamedHydration: (props: PropsWithChildren<{}>) => props.children,
}));

vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 11 locations. Consider refactoring.

votingStartTime: "",
votingEndTime: "",
tallyResults: [],
vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 11 locations. Consider refactoring.

@@ -19,6 +22,16 @@ const TEXT = "Test";
vi.mock("@tanstack/react-query-next-experimental", () => ({
ReactQueryStreamedHydration: (props: PropsWithChildren<{}>) => props.children,
}));

vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 11 locations. Consider refactoring.

@@ -15,6 +19,16 @@ vi.mock("@tanstack/react-query-next-experimental", () => ({
ReactQueryStreamedHydration: (props: PropsWithChildren<{}>) => props.children,
}));

vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 11 locations. Consider refactoring.

@@ -21,6 +22,16 @@ vi.mock("@tanstack/react-query-next-experimental", () => ({
ReactQueryStreamedHydration: (props: PropsWithChildren<{}>) => props.children,
}));

vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 11 locations. Consider refactoring.

@@ -43,6 +44,16 @@ vi.mock("wagmi", async (importOriginal: () => Promise<{}>) => {
};
});

vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 11 locations. Consider refactoring.

@@ -37,6 +40,16 @@ vi.mock("wagmi", async (importOriginal: () => Promise<{}>) => {
};
});

vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 11 locations. Consider refactoring.

@@ -21,6 +22,16 @@ vi.mock("@tanstack/react-query-next-experimental", () => ({
ReactQueryStreamedHydration: (props: PropsWithChildren<{}>) => props.children,
}));

vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 11 locations. Consider refactoring.

@@ -38,6 +39,16 @@ vi.mock("wagmi", async (importOriginal: () => Promise<{}>) => {
};
});

vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 11 locations. Consider refactoring.

@@ -23,6 +27,16 @@ vi.mock("react", async (importOriginal: () => Promise<{}>) => {
"server-only": {},
};
});

vi.mock(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 11 locations. Consider refactoring.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 23249 lines exceeds the maximum allowed for the inline comments feature.

Copy link

codeclimate bot commented Feb 1, 2024

Code Climate has analyzed commit 011387b and detected 16 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 16

View more on Code Climate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant