mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
17 lines
246 B
JavaScript
17 lines
246 B
JavaScript
function myError(err) {
|
|
if (err.includes("ECONNREFUSED")) {
|
|
jest.fn();
|
|
} else {
|
|
console.dir(err);
|
|
}
|
|
}
|
|
|
|
global.console = {
|
|
log: jest.fn(),
|
|
dir: console.dir,
|
|
error: myError,
|
|
warn: console.warn,
|
|
info: jest.fn(),
|
|
debug: console.debug
|
|
};
|