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:
parent
4a7fadbeb5
commit
d7c8fcc422
1 changed files with 10 additions and 0 deletions
10
nest_frontend/App.test.js
Normal file
10
nest_frontend/App.test.js
Normal 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()
|
||||
});
|
Loading…
Add table
Reference in a new issue