✅ test(App): add unit tests

This commit is contained in:
2024-02-17 17:38:30 +01:00
parent c785c80735
commit e68ae867b3
+13
View File
@@ -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(<App />)
expect(screen.getByLabelText('loading-screen')).toBeInTheDocument()
expect(await screen.findByText('Robotics Engineer')).toBeInTheDocument()
expect(screen.queryByLabelText('loading-screen')).not.toBeInTheDocument()
})
})