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 rootDir = __dirname
const nuxtBin = resolve(__dirname, '..', '..', '..', 'bin', 'nuxt') const nuxtBin = resolve(__dirname, '..', '..', '..', 'bin', 'nuxt')
describe('cli build', () => { describe.skip.appveyor('cli build', () => {
test('nuxt build', async () => { test('nuxt build', async () => {
const { stdout } = await execify(`node ${nuxtBin} build ${rootDir} -c cli.build.config.js`) 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 rootDir = __dirname
const nuxtBin = resolve(__dirname, '..', '..', '..', 'bin', 'nuxt') const nuxtBin = resolve(__dirname, '..', '..', '..', 'bin', 'nuxt')
describe('cli generate', () => { describe.skip.appveyor('cli generate', () => {
test('nuxt generate', async () => { test('nuxt generate', async () => {
const { stdout } = await execify(`node ${nuxtBin} generate ${rootDir} -c cli.gen.config.js`) 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') const nuxtBin = resolve(__dirname, '..', '..', 'bin', 'nuxt')
describe('cli', () => { describe.skip.appveyor('cli', () => {
test('nuxt start', async () => { test('nuxt start', async () => {
let stdout = '' let stdout = ''
let error let error

View File

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

View File

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