Closed uo289267 closed 4 months ago
import { render, screen } from '@testing-library/react';
import GameMenu from './GameMenu';
import { MemoryRouter } from 'react-router-dom';
test('renders learn react link', () => {
render(<MemoryRouter><GameMenu /></MemoryRouter>);
//const linkElement = screen.getByText(/Welcome to the 2024 edition of the Software Architecture course/i);
//expect(linkElement).toBeInTheDocument();
});
´´´
This warning appears, we should find a solution
That warning is solved adding the following code to setuptests.js
Creation of tests for all React components