mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
10 lines
282 B
JavaScript
10 lines
282 B
JavaScript
global.console = {
|
|
log: jest.fn(), // console.log are ignored in tests
|
|
|
|
// Keep native behaviour for other methods, use those to print out things in your own tests, not `console.log`
|
|
error: console.error,
|
|
warn: console.warn,
|
|
info: console.info,
|
|
debug: console.debug,
|
|
};
|