Set everything up to use hooks for reduc actions and state

This commit is contained in:
Alejandro Celaya
2025-11-14 08:24:58 +01:00
parent ffc8249c22
commit e9951e95a9
16 changed files with 79 additions and 78 deletions

View File

@@ -1,12 +1,12 @@
import { render } from '@testing-library/react';
import { MemoryRouter } from 'react-router';
import { Settings } from '../../src/settings/Settings';
import { checkAccessibility } from '../__helpers__/accessibility';
import { renderWithStore } from '../__helpers__/setUpTest';
describe('<Settings />', () => {
const setUp = () => render(
const setUp = () => renderWithStore(
<MemoryRouter>
<Settings settings={{}} setSettings={vi.fn()} />
<Settings />
</MemoryRouter>,
);