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}/>);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, {useState} from 'react';
|
||||
import './CreateCharacter.css'
|
||||
import './CreateCharacter.less'
|
||||
import {Faj, TulajdonsagokFajjal} from "../domain-models/faj";
|
||||
import {Osztaly, SetFelszerelesForChangedOsztaly} from "../domain-models/osztaly"
|
||||
import FajSelector from "../components/FajSelector";
|
||||
|
||||
Vendored
+2
-1
@@ -1 +1,2 @@
|
||||
/// <reference types="react-scripts" />
|
||||
/// <reference types="vite/client" />
|
||||
/// <reference types="vitest/globals" />
|
||||
|
||||
Reference in New Issue
Block a user