Skip to content

Commit

Permalink
Exit with code 1 if start-storybook --smoke-test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnosphi committed Sep 15, 2017
1 parent 249a3c0 commit 9397fab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/react/src/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,9 @@ Promise.all([webpackValid, serverListening])
process.exit(0);
}
})
.catch(error => logger.error(error));
.catch(error => {
logger.error(error);
if (program.smokeTest) {
process.exit(1);
}
});
7 changes: 6 additions & 1 deletion app/vue/src/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,9 @@ Promise.all([webpackValid, serverListening])
process.exit(0);
}
})
.catch(error => logger.error(error));
.catch(error => {
logger.error(error);
if (program.smokeTest) {
process.exit(1);
}
});

0 comments on commit 9397fab

Please sign in to comment.