fix(test): jest describe.skip does not work fine

This commit is contained in:
Clark Du 2019-01-28 14:30:04 +00:00
parent 6d8da0ed87
commit d0aadd4357
1 changed files with 1 additions and 6 deletions

View File

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