import * as React from 'react'; import { render } from '@testing-library/react'; import { ModalBoxBody } from '../ModalBoxBody'; test('ModalBoxBody Test', () => { const { asFragment } = render( This is a ModalBox header ); expect(asFragment()).toMatchSnapshot(); });