// @vitest-environment jsdom import {afterEach, describe, expect, it, vi} from 'vitest'; import {cleanup, render, screen} from '@testing-library/react'; import {MemoryRouter} from 'react-router-dom'; import CurrentlyPlayingCard from './CurrentlyPlayingCard.jsx'; vi.mock('react-i18next', () => import('../test/i18n-mock.js')); describe('CurrentlyPlayingCard', () => { afterEach(cleanup); it('shows the set total of a game, not the minutes of its own row', () => { render(); expect(screen.getByText('10h')).toBeTruthy(); }); });