From 4ec19da59c9ebab38cb9d30d0bfd1f39977d61ad Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Wed, 13 Sep 2017 09:35:51 +0200 Subject: [PATCH] FIX smoke tests for angular --- app/angular/src/server/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/angular/src/server/index.js b/app/angular/src/server/index.js index d23a75fb50f..68cda15ffcc 100755 --- a/app/angular/src/server/index.js +++ b/app/angular/src/server/index.js @@ -33,6 +33,7 @@ program ) .option('--ssl-cert ', 'Provide an SSL certificate. (Required with --https)') .option('--ssl-key ', 'Provide an SSL key. (Required with --https)') + .option('--smoke-test', 'Exit after successful start') .option('-d, --db-path [db-file]', 'DEPRECATED!') .option('--enable-db', 'DEPRECATED!') .parse(process.argv); @@ -153,5 +154,8 @@ Promise.all([webpackValid, serverListening]) .then(() => { const address = `http://${program.host || 'localhost'}:${program.port}/`; logger.info(`Storybook started on => ${chalk.cyan(address)}\n`); + if (program.smokeTest) { + process.exit(0); + } }) .catch(error => logger.error(error));