10 lines
307 B
TypeScript
10 lines
307 B
TypeScript
import { render, screen } from '@testing-library/react'
|
|
import { describe, it, expect } from 'vitest'
|
|
import Home from './home'
|
|
|
|
describe('Home component', () => {
|
|
it('should render welcome component', () => {
|
|
render(<Home />)
|
|
expect(screen.getByText(/React Router/i)).toBeInTheDocument()
|
|
})
|
|
})
|