Skip to content

Commit

Permalink
feat(acot-runner-storybook): add collect stories timeout error
Browse files Browse the repository at this point in the history
  • Loading branch information
wadackel committed May 1, 2022
1 parent 4f69db1 commit c4ebb75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/acot-runner-storybook/src/index.ts
Expand Up @@ -151,6 +151,12 @@ export class StorybookRunner extends AcotRunner<Options> {

debug('get stories: %O', raw);

if (raw.timeout) {
throw new Error(
'Failed to get stories. Make sure the Storybook is running.',
);
}

stories = filterStories(
raw.stories,
this.options.include ?? [],
Expand Down

0 comments on commit c4ebb75

Please sign in to comment.