1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2025-02-16 12:43:58 +00:00

🧪 Test if app renders

This commit is contained in:
Steffo 2021-05-14 00:10:54 +02:00
parent 4a7fadbeb5
commit d7c8fcc422
Signed by: steffo
GPG key ID: 6965406171929D01

10
nest_frontend/App.test.js Normal file
View file

@ -0,0 +1,10 @@
// Link.react.test.js
import React from 'react'
import '@testing-library/jest-dom/extend-expect'
import { render, screen } from '@testing-library/react'
import App from "./App"
test('App renders without exploding', () => {
render(<App/>)
expect(screen.getByRole("main")).toBeVisible()
});