Sha256: ebb105971caae63e9de5e367179e83d86f4a1851d1fbb691942629748fdfa058
Contents?: true
Size: 574 Bytes
Versions: 19
Compression:
Stored size: 574 Bytes
Contents
/* This file provides the base for tests */ import React from 'react' import { render } from '@testing-library/react' import '@testing-library/jest-dom/extend-expect' /* We can complicate this wrapper as needed. https://testing-library.com/docs/react-testing-library/setup */ // eslint-disable-next-line react/prop-types const TestApp = ({ children }) => { return ( <> { children } </> ) } const customRender = (ui, options) => render(ui, { wrapper: TestApp, ...options }) export * from '@testing-library/react' export { customRender as render }
Version data entries
19 entries across 19 versions & 1 rubygems