-
Notifications
You must be signed in to change notification settings - Fork 14
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
vi.mock("@tanstack/react-query-next-experimental", () => ({ | ||
ReactQueryStreamedHydration: (props: PropsWithChildren<{}>) => props.children, | ||
})); | ||
|
||
vi.mock( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Code Climate has analyzed commit 011387b and detected 16 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
🧙 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