Nuxt/test/utils/setup.js

18 lines
368 B
JavaScript
Raw Normal View History

2018-11-08 09:15:56 +00:00
import consola from 'consola'
import chalk from 'chalk'
import env from 'std-env'
2018-11-08 09:15:56 +00:00
2019-01-29 11:29:55 +00:00
const isWin = env.windows
describe.win = isWin ? describe : describe.skip
test.win = isWin ? test : test.skip
describe.posix = !isWin ? describe : describe.skip
test.posix = !isWin ? test : test.skip
2018-11-08 09:15:56 +00:00
chalk.enabled = false
2018-08-16 15:46:42 +00:00
jest.setTimeout(60000)
2018-11-08 09:15:56 +00:00
consola.mockTypes(() => jest.fn())