spy on console.info

This commit is contained in:
Ben Irvin 2023-01-24 09:11:40 +01:00
parent 0aee06379a
commit 527de8fcd3
2 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ describe('Export', () => {
// other spies
jest.spyOn(console, 'log').mockImplementation(() => {});
jest.spyOn(console, 'warn').mockImplementation(() => {});
jest.spyOn(console, 'info').mockImplementation(() => {});
jest.spyOn(console, 'error').mockImplementation(() => {});
// Now that everything is mocked, load the 'export' command

View File

@ -72,6 +72,7 @@ describe('Import', () => {
// other spies
jest.spyOn(console, 'log').mockImplementation(() => {});
jest.spyOn(console, 'warn').mockImplementation(() => {});
jest.spyOn(console, 'info').mockImplementation(() => {});
jest.spyOn(console, 'error').mockImplementation(() => {});
// Now that everything is mocked, load the 'import' command