const logger = require('morgan'); const app = express(); app.use(logger('dev', { skip: (req, res) => process.env.NODE_ENV === 'test' }));