Skip to content

Commit

Permalink
fix: test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
olavis committed Nov 11, 2022
1 parent 8f5c01d commit 31da3f7
Show file tree
Hide file tree
Showing 26 changed files with 463 additions and 8 deletions.
229 changes: 229 additions & 0 deletions web/.pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"styled-components": "^5.3.5"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.4.0",
Expand Down Expand Up @@ -60,4 +61,4 @@
]
},
"packageManager": "[email protected]"
}
}
7 changes: 2 additions & 5 deletions web/src/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { render, screen } from '@testing-library/react'
import { render } from '@testing-library/react'
import App from './App'

test('renders learn react link', () => {
test('renders without crashing', () => {
render(<App />)
const linkElement = screen.getByText(/learn react/i)
// @ts-ignore
expect(linkElement).toBeInTheDocument()
})
Loading

0 comments on commit 31da3f7

Please sign in to comment.