Skip to content

Commit

Permalink
Ensure that we handle SBs with hidePlayFunctionExceptions set
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Sep 8, 2022
1 parent 1861414 commit ccd26ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/setup-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ export const setupPage = async (page: Page) => {
channel.on('storyThrewException', (error) => reject(
new StorybookTestRunnerError(storyId, error.message, logs))
);
channel.on('playFunctionThrewException', (error) => reject(
new StorybookTestRunnerError(storyId, error.message, logs))
);
channel.on('storyMissing', (id) => id === storyId && reject(
new StorybookTestRunnerError(storyId, 'The story was missing when trying to access it.', logs))
);
Expand Down

0 comments on commit ccd26ab

Please sign in to comment.