test: throw if either db commands fail

This commit is contained in:
2024-06-29 10:20:06 -04:00
parent acdfc7eda4
commit ad84175d6b

View File

@@ -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,