Skip to content

Commit

Permalink
test: add describe.posix and win
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo committed Jan 29, 2019
1 parent 1501592 commit e9ba2f9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/sockets/sockets.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { buildFixture } from '../../utils/build'

describe.skip.win('unix socket', () => {
describe.posix('unix socket', () => {
buildFixture('sockets')
})
2 changes: 1 addition & 1 deletion test/unit/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const close = async (nuxtInt) => {
}
}

describe.skip.win('cli', () => {
describe.posix('cli', () => {
test('nuxt dev', async () => {
let stdout = ''
const { env } = process
Expand Down
2 changes: 1 addition & 1 deletion test/unit/sockets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 7 additions & 2 deletions test/utils/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e9ba2f9

Please sign in to comment.