import React from 'react'; import { render } from '@testing-library/react'; import App from './App'; jest.mock('react-i18next', () => ({ useTranslation: () => ({ t: (k: string) => k, i18n: { // eslint-disable-next-line @typescript-eslint/no-unused-vars changeLanguage: (l: string) => {}, language: 'en', }, }), })); test('renders the app container', () => { const { container } = render(); expect(container.querySelector('div.App')).toBeTruthy(); });