Nuxt/test/unit/sockets.test.js
Jonas Galvez 72479687d9 feat(core, cli): builtin support of https and unix sockets (#3831)
Co-authored-by: Aurélien Chrétien <aurelien@manager.one>
Co-authored-by: Rémy Sanchez <remy.sanchez@hyperthese.net>
2018-09-02 13:50:25 +04:30

22 lines
517 B
JavaScript

import { loadFixture, Nuxt } from '../utils'
let nuxt = null
describe.skip.appveyor('basic sockets', () => {
beforeAll(async () => {
const options = await loadFixture('sockets')
nuxt = new Nuxt(options)
await nuxt.listen()
})
test('/', async () => {
const { html } = await nuxt.renderRoute('/')
expect(html.includes('<h1>Served over sockets!</h1>')).toBe(true)
})
// Close server and ask nuxt to stop listening to file changes
afterAll(async () => {
await nuxt.close()
})
})