mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
15 lines
363 B
TypeScript
15 lines
363 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('ecmascript-features', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
})
|
|
|
|
// In case you need to test the response object
|
|
it('should work with fetch', async () => {
|
|
const res = await next.fetch('/')
|
|
const html = await res.text()
|
|
expect(html).toContain('hello world')
|
|
})
|
|
})
|