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