refactor: move mocking downstream

This commit is contained in:
Marc Cataford 2021-03-19 16:46:10 -04:00
parent b695a0a7ff
commit 5ea1d01345

View file

@ -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 () => {