Skip to content

Commit

Permalink
Merge pull request #194 from ericclemmons/patch-1
Browse files Browse the repository at this point in the history
Fix StorybookTestRunnerError – length on undefined
  • Loading branch information
yannbf committed Oct 7, 2022
2 parents 5e677bd + 13b7cf6 commit b45bd34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup-page.ts
Expand Up @@ -115,7 +115,7 @@ export const setupPage = async (page: Page) => {
};
class StorybookTestRunnerError extends Error {
constructor(storyId, errorMessage, logs) {
constructor(storyId, errorMessage, logs = []) {
super(errorMessage);
this.name = 'StorybookTestRunnerError';
const storyUrl = \`${referenceURL || targetURL}?path=/story/\${storyId}\`;
Expand Down

0 comments on commit b45bd34

Please sign in to comment.