From 2842b799d7f014c3415c71a08c8f01bb3fc7c0d2 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Thu, 10 Aug 2023 09:47:42 +0200 Subject: [PATCH] make the test-runner tests fail on console.error --- scripts/tasks/test-runner-build.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/tasks/test-runner-build.ts b/scripts/tasks/test-runner-build.ts index 546bb6c5aa38..b57d4c803233 100644 --- a/scripts/tasks/test-runner-build.ts +++ b/scripts/tasks/test-runner-build.ts @@ -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) {