mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-17 02:48:31 -07:00
17 lines
326 B
JavaScript
17 lines
326 B
JavaScript
let level = 'info';
|
|
|
|
const mock = {
|
|
info: jest.fn(),
|
|
warn: jest.fn(),
|
|
error: jest.fn(),
|
|
debug: jest.fn(),
|
|
trace: jest.fn(),
|
|
cleanup: jest.fn(),
|
|
setLevel: (newLevel) => {level = newLevel},
|
|
getLevel: () => level,
|
|
};
|
|
|
|
jest.mock('../../lib/util/logger', () => (mock));
|
|
|
|
module.exports = {...mock};
|