mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
12 lines
328 B
React
12 lines
328 B
React
/**
|
|
* @jest-environment jsdom
|
|
*/
|
|
import { render, screen } from '@testing-library/react'
|
|
import '@testing-library/jest-dom'
|
|
import Page from './page'
|
|
|
|
it('works with code using Next server APIs', () => {
|
|
render(<Page params={{ blog: 'Jane' }} />)
|
|
expect(screen.getByRole('heading')).toHaveTextContent('All about Jane')
|
|
})
|