Skip to content

Commit

Permalink
fix: window 함수 선언
Browse files Browse the repository at this point in the history
  • Loading branch information
eonseok-jeon committed Sep 2, 2024
1 parent 148058f commit 766dd0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/test-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ interface AllTheProvidersProps extends MemoryRouterProps {
}

export const AllTheProviders = ({ children, ...memoryRouterProps }: AllTheProvidersProps) => {
window.alert = vi.fn();
window.scrollTo = vi.fn();

const queryClient = new QueryClient({
defaultOptions: {
queries: {
Expand Down

0 comments on commit 766dd0a

Please sign in to comment.