mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
16 lines
392 B
JavaScript
16 lines
392 B
JavaScript
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
|
|
})
|