From ad84175d6b55711b6c6ddf4d84bbb7132184de66 Mon Sep 17 00:00:00 2001 From: Rushil Perera Date: Sat, 29 Jun 2024 10:20:06 -0400 Subject: [PATCH] test: throw if either db commands fail --- src/testRunner.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testRunner.ts b/src/testRunner.ts index 49e3b88..6f7ca7b 100644 --- a/src/testRunner.ts +++ b/src/testRunner.ts @@ -21,7 +21,7 @@ const positionalArgs = Object.entries(args) .concat(args._); console.log(formatCmd(args["dbCommand"])); -const dbProcess = $({ quote: (arg) => arg })`${args["dbCommand"]}`.nothrow(); +const dbProcess = $({ quote: (arg) => arg })`${args["dbCommand"]}`; let exitCode = 0; try { @@ -31,7 +31,7 @@ try { HOME: process.env["HOME"], SHOULD_LOG_ERRORS: process.env["SHOULD_LOG_ERRORS"] ?? "true", }; - await $`bun db:migrate`.nothrow(); + await $`bun db:migrate`; const testProcess = await $({ verbose: true, quote: (arg) => arg,