refactor: move mocking downstream
This commit is contained in:
parent
b695a0a7ff
commit
5ea1d01345
1 changed files with 3 additions and 3 deletions
|
@ -42,9 +42,9 @@ describe('Packwatch', () => {
|
||||||
let mockError
|
let mockError
|
||||||
let workspacePath
|
let workspacePath
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
mockLogger = jest.spyOn(logger, 'log').mockImplementation()
|
mockLogger = jest.spyOn(console, 'log').mockImplementation()
|
||||||
mockWarn = jest.spyOn(logger, 'warn').mockImplementation()
|
mockWarn = jest.spyOn(console, 'warn').mockImplementation()
|
||||||
mockError = jest.spyOn(logger, 'error').mockImplementation()
|
mockError = jest.spyOn(console, 'error').mockImplementation()
|
||||||
})
|
})
|
||||||
|
|
||||||
afterEach(async () => {
|
afterEach(async () => {
|
||||||
|
|
Reference in a new issue