test: skip sockets test in windows platform

This commit is contained in:
Clark Du 2018-09-13 10:07:34 +01:00
parent 85c9c00b73
commit 281e2dc600
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,5 @@
import { buildFixture } from '../../utils/build' import { buildFixture } from '../../utils/build'
buildFixture('sockets') describe.skip.win('unix socket', () => {
buildFixture('sockets')
})

View File

@ -2,7 +2,7 @@ import { loadFixture, Nuxt } from '../utils'
let nuxt = null let nuxt = null
describe.skip.appveyor('basic sockets', () => { describe.skip.win('basic sockets', () => {
beforeAll(async () => { beforeAll(async () => {
const options = await loadFixture('sockets') const options = await loadFixture('sockets')
nuxt = new Nuxt(options) nuxt = new Nuxt(options)

View File

@ -3,6 +3,10 @@ const isAppveyor = !!process.env.APPVEYOR
describe.skip.appveyor = isAppveyor ? describe.skip : describe describe.skip.appveyor = isAppveyor ? describe.skip : describe
test.skip.appveyor = isAppveyor ? test.skip : test test.skip.appveyor = isAppveyor ? test.skip : test
const isWin = process.platform === 'win32'
describe.skip.win = isWin ? describe.skip : describe
test.skip.win = isWin ? test.skip : test
jest.setTimeout(60000) jest.setTimeout(60000)
jest.mock('consola', () => { jest.mock('consola', () => {
const consola = {} const consola = {}