Nuxt/test/utils/setup.js

16 lines
392 B
JavaScript
Raw Normal View History

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
})