UNPKG

@testing-library/react-hooks

Version:

Simple and complete React hooks testing utilities that encourage good testing practices.

16 lines (13 loc) 516 B
// This verifies that if RHTL_DISABLE_ERROR_FILTERING is set // then we DON'T auto-wire up the afterEach for folks describe('error output suppression (disabled) tests', () => { const originalConsoleError = console.error process.env.RHTL_DISABLE_ERROR_FILTERING = 'true' runForRenderers(['default', 'dom', 'native', 'server'], () => { test('should not patch console.error', () => { expect(console.error).toBe(originalConsoleError) }) }) }) // eslint-disable-next-line jest/no-export export {}