import React from 'react' import { render, screen } from '@testing-library/react' import { Marquee } from './index' describe('Marquee', () => { it('Should render', () => { render(

First

Second

Third

, ) expect(screen.getByRole('list')).toBeInTheDocument() expect(screen.getAllByRole('listitem')).toHaveLength(3) // TODO test that when an element is displayed, the others are not }) })