Set up a Template Engine

repl link: https://boilerplate-advancednode.zia73.repl.co

const pug = require('pug');

app.set('view engine', 'pug');
app.set('views', './views/pug');

app.route('/').get((req, res) => {
  res.render('index');
});

page is successfully rendered but sill the test is not passing:

  • View engine should be Pug.

  • Failed:You should set the views property of the application to ./views/pug.

what could be the problem?