mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-18 03:13:46 +00:00
refactor: use vite instead of CRA (#81)
* refactor: use vite instead of CRA * skip deployments for now * local env fixes
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
import { vi } from 'vitest';
|
||||
import App from './App';
|
||||
|
||||
vi.mock('react-router-dom', async () => {
|
||||
const actual = await vi.importActual<typeof import('react-router-dom')>('react-router-dom');
|
||||
|
||||
return {
|
||||
...actual,
|
||||
createBrowserRouter: vi.fn(() => ({})),
|
||||
RouterProvider: () => <div data-testid="router-provider" />,
|
||||
};
|
||||
});
|
||||
|
||||
test('renders App', () => {
|
||||
render(<App faro={undefined}/>);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user