a59e880559
* 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
15 lines
347 B
TypeScript
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()
|
|
})
|
|
})
|