Skip to content

Commit

Permalink
Merge pull request #23783 from storybookjs/build/fail-on-console-erro…
Browse files Browse the repository at this point in the history
…r-test-runner

Build: Make the test-runner tests fail on console.error
  • Loading branch information
kylegach authored Aug 14, 2023
2 parents 14d7be8 + 2842b79 commit 28b5077
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/tasks/test-runner-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ export const testRunnerBuild: Task & { port: number } = {
},
async run({ sandboxDir, junitFilename, template }, { dryRun, debug }) {
const execOptions = { cwd: sandboxDir };
const flags = [`--url http://localhost:${this.port}`, '--junit', '--maxWorkers=2'];
const flags = [
`--url http://localhost:${this.port}`,
'--junit',
'--maxWorkers=2',
'--failOnConsole',
];

// index-json mode is only supported in ssv7
if (template.modifications?.mainConfig?.features?.storyStoreV7 !== false) {
Expand Down

0 comments on commit 28b5077

Please sign in to comment.