Skip to content

Commit

Permalink
add safe check
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jan 31, 2023
1 parent b45b5f4 commit e9cdfa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/test-storybook.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ const main = async () => {

process.env.STORYBOOK_CONFIG_DIR = runnerOptions.configDir;

const testRunnerConfig = getTestRunnerConfig(runnerOptions.configDir);
const testRunnerConfig = getTestRunnerConfig(runnerOptions.configDir) || {};
if (testRunnerConfig.getHttpHeaders) {
getHttpHeaders = testRunnerConfig.getHttpHeaders;
}
Expand Down

0 comments on commit e9cdfa7

Please sign in to comment.