Refactor/vite (#209)

* refactor(vite): add dependencies
* refactor(vite): necessary code migrations
* refactor(vite): convert file to tsx
* refactor(vite): config
* refactor(vite): doctype casing
This commit is contained in:
Carlos Valente
2022-09-28 21:13:20 +02:00
committed by GitHub
parent d86afee477
commit 562cb769c5
30 changed files with 1572 additions and 7013 deletions
@@ -0,0 +1,20 @@
import { render, screen } from '@testing-library/react';
import { vi } from 'vitest';
import MenuActionButtons from '../MenuActionButtons';
const actionHandler = vi.fn();
const renderInMock = () => {
render(<MenuActionButtons actionHandler={actionHandler} />);
};
test('check that menu bar renders correctly', () => {
// need to inject the react query provider
renderInMock();
const b = screen.getByRole('button', {
name: /create menu/i,
});
expect(b).toBeInTheDocument();
});