Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-03-06 15:46:02 +03:00
parent 3f8cda4234
commit 891898864f
11 changed files with 1526 additions and 29 deletions
+19
View File
@@ -0,0 +1,19 @@
import { render, screen } from '@testing-library/react'
import Home from './page'
jest.mock('next/image', () => ({
__esModule: true,
default: (props: React.ImgHTMLAttributes<HTMLImageElement>) => (
// biome-ignore lint/a11y/useAltText: mock
<img {...props} />
),
}))
describe('Home', () => {
it('renders the Next.js logo', () => {
render(<Home />)
const logo = screen.getByAltText('Next.js logo')
expect(logo).toBeInTheDocument()
})
})