2021-03-01 01:06:23 +01:00
|
|
|
import React from 'react'
|
|
|
|
import { render } from '@testing-library/react'
|
2022-05-12 01:00:19 +02:00
|
|
|
import data from '../../../.jest/__fixtures__/home.json'
|
2023-01-29 22:58:19 +01:00
|
|
|
import Home from '../index'
|
2021-03-01 01:06:23 +01:00
|
|
|
|
|
|
|
describe('/', () => {
|
|
|
|
it('renders without crashing', () => {
|
2022-11-11 03:31:54 +01:00
|
|
|
// @ts-expect-error: only testing first render
|
|
|
|
const { container } = render(<Home data={data as any} />)
|
2021-03-01 01:06:23 +01:00
|
|
|
expect(container.firstChild).toBeInTheDocument()
|
|
|
|
})
|
|
|
|
})
|