Nuxt/test/utils/setup.js
2018-09-13 10:07:34 +01:00

21 lines
550 B
JavaScript

const isAppveyor = !!process.env.APPVEYOR
describe.skip.appveyor = isAppveyor ? describe.skip : describe
test.skip.appveyor = isAppveyor ? test.skip : test
const isWin = process.platform === 'win32'
describe.skip.win = isWin ? describe.skip : describe
test.skip.win = isWin ? test.skip : test
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
})