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

jest.setup.js

8 lines220 Bytes

1import { act } from '@testing-library/react'
2​
3import { notifyManager } from './src'
4​
5// Wrap notifications with act to make sure React knows about React Query updates
6notifyManager.setNotifyFunction(fn => {
7 act(fn)
8})