mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
refactor: use spyOn in mockLog
This commit is contained in:
parent
9ddd56c97f
commit
708f602a62
@ -5,7 +5,7 @@ export default function mockLog(levels = 'all', logger = console) {
|
||||
}
|
||||
beforeAll(() => {
|
||||
for (let level of levels) {
|
||||
logger[level] = jest.fn()
|
||||
jest.spyOn(logger, level).mockImplementation(()=>{})
|
||||
}
|
||||
})
|
||||
beforeEach(() => {
|
Loading…
Reference in New Issue
Block a user