0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/packages/api/__mocks__/@verdaccio/logger/index.js

22 lines
345 B
JavaScript
Raw Normal View History

const debug = require('debug')('verdaccio:test');
const setup = debug;
2020-08-13 16:36:23 -05:00
const logger = {
child: jest.fn(() => ({
debug,
trace: debug,
warn: debug,
info: debug,
error: debug,
fatal: debug,
})),
debug: debug,
trace: debug,
warn: debug,
info: debug,
error: debug,
fatal: debug,
};
2020-08-13 16:36:23 -05:00
export { setup, logger };