import { screen } from '@testing-library/react' import { test } from 'vitest' import { render } from '../../helpers' import ReportWidget from '@/components/interfaces/Reports/ReportWidget' test('static elements', async () => { render( 'something'} /> ) await screen.findByText(/something/) await screen.findByText(/Some chart/) }) test('append', async () => { const appendable = () => 'some text' render( null} append={appendable} /> ) await screen.findByText(/some text/) })