mars-v2-frontend/__tests__/Footer.test.tsx
Yusuf Seyrek a59e880559
feat: fix code coverage workflow (#195)
* feat: create a dummy component for testing coverage workflow

* feat: add test for dummy component

* fix: delta

* fix: command

* fix: remove test file regexp

* chore: break tests

* fix: tests

* feat: add test for footer component

* fix: delete dummy component
2023-05-12 10:55:51 +03:00

15 lines
347 B
TypeScript

import { render, screen } from '@testing-library/react'
import Footer from 'components/Footer'
import packageJSON from '../package.json'
describe('<Footer />', () => {
it('should render correctly', () => {
render(<Footer />)
const content = screen.getByText(`v${packageJSON.version}`)
expect(content).toBeInTheDocument()
})
})