next.js/test/e2e/app-dir/ecmascript-features/ecmascript-features.test.ts
ecmascript-features.test.ts15 lines363 B
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')
  })
})
Quest for Codev2.0.0
/
SIGN IN