diff --git a/src/App.test.tsx b/src/App.test.tsx new file mode 100644 index 0000000..a64c386 --- /dev/null +++ b/src/App.test.tsx @@ -0,0 +1,13 @@ +import { render, screen } from '@testing-library/react' + +import App from './App' + +describe('App component', () => { + test('renders MainPage without crashing', async () => { + render() + + expect(screen.getByLabelText('loading-screen')).toBeInTheDocument() + expect(await screen.findByText('Robotics Engineer')).toBeInTheDocument() + expect(screen.queryByLabelText('loading-screen')).not.toBeInTheDocument() + }) +})