Nuxt/test/utils/setup.js

17 lines
412 B
JavaScript
Raw Normal View History

2018-03-31 16:37:57 +00:00
const isAppveyor = !!process.env.APPVEYOR
describe.skip.appveyor = isAppveyor ? describe.skip : describe
test.skip.appveyor = isAppveyor ? 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
})