text: const { Nuxt, Builder } = require('nuxt')
  const request = require('request-promise-native')
  
  const config = require('./fixture/nuxt.config')
  
  const url = path => `http://localhost:3000${path}`
  const get = path => request(url(path))
  
  describe('basic', () => {
    let nuxt
  
    beforeAll(async () => {
      nuxt = new Nuxt(config)
      await new Builder(nuxt).build()
      await nuxt.listen(3000)
    }, 60000)
  
    afterAll(async () => {
      await nuxt.close()
    })
  
    test('render', async () => {
      let html = await get('/')
      expect(html).toContain('This is the landing page')
    })
  })
  