Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

setupTests.tsx

8 lines208 Bytes

1import '@testing-library/jest-dom/vitest'
2import { vi } from 'vitest'
3​
4// @ts-expect-error
5global.IS_REACT_ACT_ENVIRONMENT = true
6​
7// Mock window.scrollTo to silence errors in tests
8window.scrollTo = vi.fn()