mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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(() => {
|
beforeAll(() => {
|
||||||
for (let level of levels) {
|
for (let level of levels) {
|
||||||
logger[level] = jest.fn()
|
jest.spyOn(logger, level).mockImplementation(()=>{})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
Loading…
Reference in New Issue
Block a user