Open History to see the last commit
1import { beforeEach } from 'vitest'
2import { endMemoryTurn, isMemoryInstrumented } from '../turn'
3β
4// @ts-expect-error
5global.IS_REACT_ACT_ENVIRONMENT = true
6β
7const scrollTo = () => {}
8β
9window.scrollTo = scrollTo
10globalThis.scrollTo = scrollTo
11β
12export {}
13β
14if (isMemoryInstrumented()) {
15 beforeEach(endMemoryTurn)
16}