diff --git a/react-app/package.json b/react-app/package.json index 7bdd9b056..4c5b4987f 100644 --- a/react-app/package.json +++ b/react-app/package.json @@ -23,7 +23,6 @@ "@mui/icons-material": "6.1.0", "@mui/lab": "5.0.0-alpha.170", "@mui/material": "6.1.0", - "@mui/utils": "6.1.2", "@mui/x-data-grid": "7.18.0", "@mui/x-date-pickers": "7.18.0", "@turf/turf": "7.1.0", diff --git a/react-app/src/App.test.tsx b/react-app/src/App.test.tsx deleted file mode 100644 index 163365991..000000000 --- a/react-app/src/App.test.tsx +++ /dev/null @@ -1,40 +0,0 @@ -// import { create } from 'react-test-renderer'; -// import { render, screen } from '@testing-library/react'; -// import App from './App'; -import React from 'react'; -import '@testing-library/jest-dom'; -// import { BrowserRouter } from 'react-router-dom'; - -// Mock child components -jest.mock('@/pages/Home', () => { - const Home = (props) => ( -
- Mocked Header -
- ); - return { default: Home }; -}); - -// FIXME: See note about moduleNameMapper in jest.config.ts -describe('App.tsx', () => { - it('FIXME', () => { - expect(true).toBeTruthy(); - }); - // it('should match the existing snapshot', () => { - // const tree = create( - // - // - // , - // ).toJSON(); - // expect(tree).toMatchSnapshot(); - // }); - - // it('should contain the header component', async () => { - // render( - // - // - // , - // ); - // expect(await screen.findByText('Mocked Header')).toBeInTheDocument(); - // }); -}); diff --git a/react-app/src/components/form/AutocompleteField.test.tsx b/react-app/src/components/form/AutocompleteField.test.tsx deleted file mode 100644 index fa9c14131..000000000 --- a/react-app/src/components/form/AutocompleteField.test.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import { render } from '@testing-library/react'; -import React from 'react'; -import '@testing-library/jest-dom'; -import AutocompleteFormField from './AutocompleteFormField'; - -jest.mock('react-hook-form', () => ({ - ...jest.requireActual('react-hook-form'), - Controller: () => <>, - useForm: () => ({ - control: () => ({}), - handleSubmit: () => jest.fn(), - }), - useFormContext: () => ({ - control: () => ({}), - }), -})); - -jest.mock('@mui/utils', () => ({ - ...jest.requireActual('@mui/utils'), - getReactNodeRef: () => null, -})); - -describe('', () => { - it('should render', () => { - render( - , - ); - }); -}); diff --git a/react-app/src/components/layout/Footer.test.tsx b/react-app/src/components/layout/Footer.test.tsx deleted file mode 100644 index fc421c9ab..000000000 --- a/react-app/src/components/layout/Footer.test.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import { create } from 'react-test-renderer'; -import React from 'react'; -import Footer from '@/components/layout/Footer'; - -jest.mock('@mui/material', () => ({ - ...jest.requireActual('@mui/material'), - useTheme: () => ({ - palette: { - gray: { - main: '#FFFFFF', - }, - }, - }), -})); - -jest.mock('@mui/utils', () => ({ - ...jest.requireActual('@mui/utils'), - getReactNodeRef: () => null, -})); - -describe('Footer.tsx', () => { - it('should match the existing snapshot', () => { - const tree = create(