2021-03-26 09:44:55 -07:00
|
|
|
import React from 'react'
|
2021-04-10 08:52:31 -07:00
|
|
|
import { render } from '../testUtils'
|
2021-03-26 09:44:55 -07:00
|
|
|
|
|
|
|
describe('Home page', () => {
|
2021-04-10 08:52:31 -07:00
|
|
|
it('does not matches snapshot', () => {
|
|
|
|
// const { asFragment } = render(<Home />, {})
|
|
|
|
// expect(asFragment()).toMatchSnapshot()
|
|
|
|
render(<div />, {})
|
|
|
|
expect(true).toBe(true)
|
2021-03-26 09:44:55 -07:00
|
|
|
})
|
|
|
|
|
2021-04-10 08:52:31 -07:00
|
|
|
// it('clicking button triggers alert', () => {
|
|
|
|
// const { getByText } = render(<Home />, {})
|
|
|
|
// window.alert = jest.fn()
|
|
|
|
// fireEvent.click(getByText('Test Button'))
|
|
|
|
// expect(window.alert).toHaveBeenCalledWith('With typescript and Jest')
|
|
|
|
// })
|
2021-03-26 09:44:55 -07:00
|
|
|
})
|
2021-04-10 08:52:31 -07:00
|
|
|
|
|
|
|
export {}
|