mock consola with jest

This commit is contained in:
Pooya Parsa 2018-03-31 21:07:57 +04:30
parent 76b4932acc
commit 5f2cf99eb9

View File

@ -1,4 +1,10 @@
// eslint-disable // eslint-disable
require('babel-polyfill') require('babel-polyfill')
const consola = require('consola')
jasmine.DEFAULT_TIMEOUT_INTERVAL = 60 * 1000 jasmine.DEFAULT_TIMEOUT_INTERVAL = 60 * 1000
consola.clear().add({
log: jest.fn()
})