nestjs-request-deduplication
Version:
[](https://www.npmjs.com/package/nestjs-request-deduplication) [](https://gith
12 lines (11 loc) • 749 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const common_1 = require("@nestjs/common");
// Replace the logger implementation
jest.spyOn(common_1.Logger.prototype, 'log').mockImplementation(() => undefined);
jest.spyOn(common_1.Logger.prototype, 'error').mockImplementation(() => undefined);
jest.spyOn(common_1.Logger.prototype, 'warn').mockImplementation(() => undefined);
jest.spyOn(common_1.Logger.prototype, 'debug').mockImplementation(() => undefined);
jest.spyOn(common_1.Logger.prototype, 'verbose').mockImplementation(() => undefined);
// Also mock console methods if needed
global.console = Object.assign(Object.assign({}, console), { log: jest.fn(), error: jest.fn(), warn: jest.fn(), debug: jest.fn() });