Skip to content

Commit

Permalink
Throw if no stories were found (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
pirelenito authored and oblador committed Jan 23, 2018
1 parent 1427d01 commit 26a240c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/commands/test/run-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ async function runTests(flatConfigurations, options) {
title: 'Fetch list of stories',
task: async () => {
storybook = await target.getStorybook();
if (storybook.length === 0) {
throw new Error('Error: No stories were found.');
}
},
},
...Object.values(
Expand Down

0 comments on commit 26a240c

Please sign in to comment.