Jak uniemożliwić Morganowi pracować w teście
const logger = require('morgan');
const app = express();
app.use(logger('dev', { skip: (req, res) => process.env.NODE_ENV === 'test' }));
Faithful Fish