import { render } from '@testing-library/react' import { ErrorPage } from '../ErrorPage' describe('', () => { it('should render with message and statusCode', async () => { const message = 'Error' const statusCode = 404 const { getByText } = render( ) expect(getByText(message)).toBeInTheDocument() expect(getByText(statusCode)).toBeInTheDocument() }) })