mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(test): jest describe.skip does not work fine
This commit is contained in:
parent
6d8da0ed87
commit
d0aadd4357
@ -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()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user