Skip to content

Commit 4253ff3

Browse files
committed
refactor: turn off error logging in tests
the global `clearMocks: true` should make sure that this gets reset after every test
1 parent 315f0cf commit 4253ff3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/reactjs/tests/utils.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
} from '../..'
1010

1111
export function createQueryClient(config?: QueryClientConfig): QueryClient {
12+
jest.spyOn(console, 'error').mockImplementation(() => undefined)
1213
return new QueryClient({ logger: mockLogger, ...config })
1314
}
1415

0 commit comments

Comments
 (0)