mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
test: add describe.posix and win
This commit is contained in:
parent
1501592581
commit
e9ba2f97d2
2
test/fixtures/sockets/sockets.test.js
vendored
2
test/fixtures/sockets/sockets.test.js
vendored
@ -1,5 +1,5 @@
|
||||
import { buildFixture } from '../../utils/build'
|
||||
|
||||
describe.skip.win('unix socket', () => {
|
||||
describe.posix('unix socket', () => {
|
||||
buildFixture('sockets')
|
||||
})
|
||||
|
@ -20,7 +20,7 @@ const close = async (nuxtInt) => {
|
||||
}
|
||||
}
|
||||
|
||||
describe.skip.win('cli', () => {
|
||||
describe.posix('cli', () => {
|
||||
test('nuxt dev', async () => {
|
||||
let stdout = ''
|
||||
const { env } = process
|
||||
|
@ -2,7 +2,7 @@ import { loadFixture, Nuxt } from '../utils'
|
||||
|
||||
let nuxt = null
|
||||
|
||||
describe.skip.win('basic sockets', () => {
|
||||
describe.posix('basic sockets', () => {
|
||||
test('/', async () => {
|
||||
const options = await loadFixture('sockets')
|
||||
nuxt = new Nuxt(options)
|
||||
|
@ -2,8 +2,13 @@ import consola from 'consola'
|
||||
import chalk from 'chalk'
|
||||
import env from 'std-env'
|
||||
|
||||
describe.skip.win = env.windows ? describe.skip : describe
|
||||
test.skip.win = env.windows ? test.skip : test
|
||||
const isWin = env.windows
|
||||
|
||||
describe.win = isWin ? describe : describe.skip
|
||||
test.win = isWin ? test : test.skip
|
||||
|
||||
describe.posix = !isWin ? describe : describe.skip
|
||||
test.posix = !isWin ? test : test.skip
|
||||
|
||||
chalk.enabled = false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user