diff --git a/src/setup-page-script.ts b/src/setup-page-script.ts index 56b9c392..549e2ed7 100644 --- a/src/setup-page-script.ts +++ b/src/setup-page-script.ts @@ -380,6 +380,11 @@ async function __test(storyId: string): Promise { reject(new StorybookTestRunnerError(storyId, error.message, logs)); }, + unhandledErrorsWhilePlaying: (error: Error) => { + cleanup(listeners); + reject(new StorybookTestRunnerError(storyId, error.message, logs)); + }, + storyMissing: (id: string) => { cleanup(listeners); if (id === storyId) {