test: throw if either db commands fail
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user