Skip to content

Commit

Permalink
support unhandled errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jan 23, 2024
1 parent 52487fc commit b5fa0aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/setup-page-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,11 @@ async function __test(storyId: string): Promise<any> {
reject(new StorybookTestRunnerError(storyId, error.message, logs));
},

UNHANDLED_ERRORS_WHILE_PLAYING: (error: Error) => {
cleanup(listeners);
reject(new StorybookTestRunnerError(storyId, error.message, logs));
},

storyMissing: (id: string) => {
cleanup(listeners);
if (id === storyId) {
Expand Down

0 comments on commit b5fa0aa

Please sign in to comment.