rsnext/examples/with-jest/__tests__/testing-library.js
Joe Haddad 9a8c3100d2
New Jest Example (#10396)
* New Jest Example

* add missing zeit logo

* Revert zeit.svg

* remove old jest examples

* Update jest.config.js
2020-02-03 20:36:55 +01:00

11 lines
344 B
JavaScript

import React from 'react'
import { render } from '@testing-library/react'
import Index from '../pages/index'
test('renders deploy link', () => {
const { getByText } = render(<Index />)
const linkElement = getByText(
/Instantly deploy your Next\.js site to a public URL with ZEIT Now\./
)
expect(linkElement).toBeInTheDocument()
})