Answers for "how can prevent morgan to work in test enviroment"

0

how can prevent morgan to work in test enviroment

const logger = require('morgan');
const app = express();
app.use(logger('dev', { skip: (req, res) => process.env.NODE_ENV === 'test' }));
Posted by: Guest on August-11-2020

Code answers related to "how can prevent morgan to work in test enviroment"

Code answers related to "Javascript"

Browse Popular Code Answers by Language