test: ignore multiple processes test cases in appveyor

This commit is contained in:
Clark Du 2018-07-20 17:23:46 +01:00
parent 095404a251
commit 8c85edd08b
No known key found for this signature in database
GPG Key ID: 32CBD8CD478AF898
5 changed files with 10 additions and 9 deletions

View File

@ -6,7 +6,7 @@ const execify = promisify(exec)
const rootDir = __dirname
const nuxtBin = resolve(__dirname, '..', '..', '..', 'bin', 'nuxt')
describe('cli build', () => {
describe.skip.appveyor('cli build', () => {
test('nuxt build', async () => {
const { stdout } = await execify(`node ${nuxtBin} build ${rootDir} -c cli.build.config.js`)

View File

@ -6,7 +6,7 @@ const execify = promisify(exec)
const rootDir = __dirname
const nuxtBin = resolve(__dirname, '..', '..', '..', 'bin', 'nuxt')
describe('cli generate', () => {
describe.skip.appveyor('cli generate', () => {
test('nuxt generate', async () => {
const { stdout } = await execify(`node ${nuxtBin} generate ${rootDir} -c cli.gen.config.js`)

View File

@ -9,7 +9,7 @@ const url = route => 'http://localhost:' + port + route
const nuxtBin = resolve(__dirname, '..', '..', 'bin', 'nuxt')
describe('cli', () => {
describe.skip.appveyor('cli', () => {
test('nuxt start', async () => {
let stdout = ''
let error

View File

@ -9,7 +9,7 @@ const url = route => 'http://localhost:' + port + route
const nuxtBin = resolve(__dirname, '..', '..', 'bin', 'nuxt')
describe('cli', () => {
describe.skip.appveyor('cli', () => {
test('nuxt start', async () => {
let stdout = ''
let error

View File

@ -1,10 +1,11 @@
// eslint-disable
require('babel-polyfill')
const consola = require('consola')
require('consola').clear().add({
log: jest.fn()
})
jasmine.DEFAULT_TIMEOUT_INTERVAL = 60 * 1000
consola.clear().add({
log: jest.fn()
})
const isAppveyor = !!process.env.APPVEYOR
describe.skip.appveyor = isAppveyor ? describe.skip : describe
test.skip.appveyor = isAppveyor ? test.skip : test