mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 22:07:40 +01:00
17 lines
479 B
TypeScript
17 lines
479 B
TypeScript
import { render as rtlRender, RenderOptions } from '@testing-library/react'
|
|
import { ReactElement } from 'react'
|
|
import { TestWrapper } from './TestWrapper'
|
|
|
|
// Custom render function that includes providers
|
|
function render(ui: ReactElement, options?: RenderOptions) {
|
|
return rtlRender(ui, {
|
|
wrapper: TestWrapper,
|
|
...options,
|
|
})
|
|
}
|
|
|
|
// Re-export everything from react-testing-library
|
|
export * from '@testing-library/react'
|
|
|
|
// Override render method
|
|
export { render }
|