import jsdom from 'jsdom' import { getPort, loadFixture, Nuxt, rp } from '../utils' let port const url = route => 'http://localhost:' + port + route let nuxt = null describe('with-config', () => { beforeAll(async () => { const config = await loadFixture('with-config') nuxt = new Nuxt(config) port = await getPort() await nuxt.listen(port, 'localhost') }) test('/', async () => { const { html } = await nuxt.renderRoute('/') expect(html.includes('

I have custom configurations

')).toBe(true) }) test('/ (asset name for analyze mode)', async () => { const { html } = await nuxt.renderRoute('/') expect(html).toContain('