Files
omnivore/packages/web/__tests__/testUtils.ts
2022-02-11 09:24:33 -08:00

18 lines
497 B
TypeScript

/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/* eslint-disable @typescript-eslint/no-explicit-any */
import { render } from '@testing-library/react'
import '@testing-library/jest-dom'
const Providers = ({ children }: any) => {
return children
}
const customRender = (ui: any, options = {}) =>
render(ui, { wrapper: Providers, ...options })
// re-export everything
export * from '@testing-library/react'
// override render method
export { customRender as render }