feat: use vite and ts

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-19 18:08:19 +01:00
parent f68f25122d
commit 2cb7ce23db
26 changed files with 11820 additions and 0 deletions

32
src/components/test.tsx Normal file
View File

@@ -0,0 +1,32 @@
import { render, screen } from '@testing-library/react'
import App from './App'
describe('<App />', () => {
it('should render the App', () => {
const { container } = render(<App />)
expect(
screen.getByRole('heading', {
name: /Welcome!/i,
level: 1
})
).toBeInTheDocument()
expect(
screen.getByText(
/This is a boilerplate build with Vite, React 18, TypeScript, Vitest, Testing Library, TailwindCSS 3, Eslint and Prettier./i
)
).toBeInTheDocument()
expect(
screen.getByRole('link', {
name: /start building for free/i
})
).toBeInTheDocument()
expect(screen.getByRole('img')).toBeInTheDocument()
expect(container.firstChild).toBeInTheDocument()
})
})