message: sparkles: Add --model-test option to `jovo run`
diff: @@ -27,6 +27,7 @@ if (process.argv.indexOf('run') > 0 &&
  module.exports = function(vorpal) {
  vorpal
  .command('run <webhookFile>', 'run')
  + .allowUnknownOptions()
  .description('Runs a local development server (webhook).')
  .option('-b, --bst-proxy', 'Proxies the HTTP service running at the specified port via bst')
  .option('-n, --ngrok', 'Http tunnel via ngrok. Ngrok instance has to run.')
  @@ -36,6 +37,7 @@ module.exports = function(vorpal) {
  .option('-w, --watch', 'Uses nodemon to watch files. Restarts immediately on file change.')
  .option('--webhook-only', 'Starts the Jovo Webhook proxy without executing the code')
  .option('--disable-jovo-debugger', 'Disables Jovo Debugger (web version)')
  + .option('--model-test', 'Activates the language model test')
  .option('--timeout <timeout>', 'Sets timeout in milliseconds')
  .option('-r, --record <name>', 'Can be used to record requests and responses of your Jovo app for testing purposes.')
  .action((args, callback) => {
  @@ -71,7 +73,7 @@ module.exports = function(vorpal) {
  command = resolveBin.sync('nodemon');
  }
  - let parameters = ['./'+localServerFile, '--ignore', 'db/*'];
  + let parameters = ['./'+localServerFile, '--ignore', 'db/*', '--ignore', 'test/*'];
  if (args.options.record) {
  parameters.push('--record');
  @@ -103,6 +105,10 @@ module.exports = function(vorpal) {
  parameters.push('--disable-jovo-debugger');
  }
  + if (args.options['model-test']) {
  + parameters.push('--model-test');
  + }
  +
  if (args.options['bst-proxy']) {
  const proxy = BSTProxy.http(port);
  @@ -188,7 +194,6 @@ function jovoWebhook(options, stage) {
  console.log(error);
  });
  socket.on('request-' + id, (data) => {
  -
  post(data.request, data.headers, options).then((result) => {
  socket.emit('response-' + id, result);
  }).catch((error) => {
  