mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-29 07:01:52 +00:00
Update tests to use vi instead of jest
This commit is contained in:
@@ -5,12 +5,12 @@ import { VisitsSettings } from '../../src/settings/VisitsSettings';
|
||||
import { renderWithEvents } from '../__helpers__/setUpTest';
|
||||
|
||||
describe('<VisitsSettings />', () => {
|
||||
const setVisitsSettings = jest.fn();
|
||||
const setVisitsSettings = vi.fn();
|
||||
const setUp = (settings: Partial<Settings> = {}) => renderWithEvents(
|
||||
<VisitsSettings settings={fromPartial(settings)} setVisitsSettings={setVisitsSettings} />,
|
||||
);
|
||||
|
||||
afterEach(jest.clearAllMocks);
|
||||
afterEach(vi.clearAllMocks);
|
||||
|
||||
it('renders expected components', () => {
|
||||
setUp();
|
||||
|
||||
Reference in New Issue
Block a user