UNPKG

nestjs-request-deduplication

Version:

[![npm version](https://badge.fury.io/js/nestjs-request-deduplication.svg)](https://www.npmjs.com/package/nestjs-request-deduplication) [![CI](https://github.com/daniyel/nestjs-request-deduplication/actions/workflows/pr-checks.yml/badge.svg)](https://gith

12 lines (11 loc) 749 B
"use strict"; 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() });