Skip to content

Commit

Permalink
support unhandled errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Dec 22, 2023
1 parent 6624c5e commit 1c5ee76
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_DURING_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 1c5ee76

Please sign in to comment.