All files / tests index.tsx

100% Statements 10/10
100% Branches 0/0
100% Functions 2/2
100% Lines 10/10

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2331x   31x 31x 31x           31x 103x     31x 102x     31x     31x  
import "@testing-library/jest-dom"
import React from "react"
import ThemeProvider from "styles/theme/Provider"
import { render } from "@testing-library/react"
import theme from "styles/theme"
 
interface Props {
  children: React.ReactNode
}
 
const AllTheProviders = ({ children }: Props) => (
  <ThemeProvider theme={theme}>{children}</ThemeProvider>
)
 
const customRender = (ui: any, options?: any): any =>
  render(ui, { wrapper: AllTheProviders, ...options })
 
// re-export everything
export * from "@testing-library/react"
 
// override render method
export { customRender as render }