import React from 'react' import { render } from '@testing-library/react' import TimelineEvent from '../TimelineEvent' describe('TimelineEvent', () => { it('renders with date label and children', () => { const { container } = render(

This is the event content

) expect(container).toMatchSnapshot() }) it('renders with minimal children content', () => { const { container } = render(

Brief event description

) expect(container).toMatchSnapshot() }) it('renders with long date label', () => { const { container } = render(

Christmas celebration details

) expect(container).toMatchSnapshot() }) it('renders with complex nested children', () => { const { container } = render(

Quarterly Results

The company announced strong Q4 results.

) expect(container).toMatchSnapshot() }) })