12 lines
388 B
TypeScript
12 lines
388 B
TypeScript
import { render, screen } from '@testing-library/react'
|
|
import Projects from '.'
|
|
import projects from '../../../tests/__fixtures__/projects.json'
|
|
|
|
describe('Projects', () => {
|
|
it('renders correctly from data file values', async () => {
|
|
render(<Projects projects={projects} />)
|
|
const item = await screen.findByText(projects[0].title)
|
|
expect(item).toBeInTheDocument()
|
|
})
|
|
})
|