mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
spy on console.info
This commit is contained in:
parent
0aee06379a
commit
527de8fcd3
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user