diff --git a/test/fixtures/sockets/sockets.test.js b/test/fixtures/sockets/sockets.test.js index 348ae57023..c018dba3a4 100644 --- a/test/fixtures/sockets/sockets.test.js +++ b/test/fixtures/sockets/sockets.test.js @@ -1,5 +1,5 @@ import { buildFixture } from '../../utils/build' -describe.skip.win('unix socket', () => { +describe.posix('unix socket', () => { buildFixture('sockets') }) diff --git a/test/unit/cli.test.js b/test/unit/cli.test.js index 0e40959420..51927b3188 100644 --- a/test/unit/cli.test.js +++ b/test/unit/cli.test.js @@ -20,7 +20,7 @@ const close = async (nuxtInt) => { } } -describe.skip.win('cli', () => { +describe.posix('cli', () => { test('nuxt dev', async () => { let stdout = '' const { env } = process diff --git a/test/unit/sockets.test.js b/test/unit/sockets.test.js index 92e1c7907a..2b2bd5bf90 100644 --- a/test/unit/sockets.test.js +++ b/test/unit/sockets.test.js @@ -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) diff --git a/test/utils/setup.js b/test/utils/setup.js index a20c15f164..bb74d136c9 100644 --- a/test/utils/setup.js +++ b/test/utils/setup.js @@ -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