2018-10-23 09:55:08 +00:00
|
|
|
const isAppveyor = !!process.env.APPVEYOR
|
|
|
|
describe.skip.appveyor = isAppveyor ? describe.skip : describe
|
|
|
|
test.skip.appveyor = isAppveyor ? test.skip : test
|
|
|
|
|
2018-09-13 09:07:34 +00:00
|
|
|
const isWin = process.platform === 'win32'
|
|
|
|
describe.skip.win = isWin ? describe.skip : describe
|
|
|
|
test.skip.win = isWin ? test.skip : test
|
|
|
|
|
2018-08-16 15:46:42 +00:00
|
|
|
jest.setTimeout(60000)
|
|
|
|
jest.mock('consola', () => {
|
|
|
|
const consola = {}
|
|
|
|
for (const level of [
|
|
|
|
'fatal', 'error', 'warn', 'log', 'info',
|
|
|
|
'start', 'success', 'ready', 'debug', 'trace'
|
|
|
|
]) {
|
|
|
|
consola[level] = jest.fn()
|
|
|
|
}
|
|
|
|
return consola
|
|
|
|
})
|