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

setupTests.tsx

7 lines166 Bytes

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