mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-15 01:25:28 +01:00
13 lines
309 B
TypeScript
13 lines
309 B
TypeScript
import { render } from '@testing-library/react'
|
|
import { ReactElement } from 'react'
|
|
|
|
const testRender = (component: ReactElement) => {
|
|
it('renders without crashing', () => {
|
|
const { container } = render(component)
|
|
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
})
|
|
}
|
|
|
|
export default testRender
|