test: throw if either db commands fail
This commit is contained in:
@@ -21,7 +21,7 @@ const positionalArgs = Object.entries(args)
|
|||||||
.concat(args._);
|
.concat(args._);
|
||||||
|
|
||||||
console.log(formatCmd(args["dbCommand"]));
|
console.log(formatCmd(args["dbCommand"]));
|
||||||
const dbProcess = $({ quote: (arg) => arg })`${args["dbCommand"]}`.nothrow();
|
const dbProcess = $({ quote: (arg) => arg })`${args["dbCommand"]}`;
|
||||||
|
|
||||||
let exitCode = 0;
|
let exitCode = 0;
|
||||||
try {
|
try {
|
||||||
@@ -31,7 +31,7 @@ try {
|
|||||||
HOME: process.env["HOME"],
|
HOME: process.env["HOME"],
|
||||||
SHOULD_LOG_ERRORS: process.env["SHOULD_LOG_ERRORS"] ?? "true",
|
SHOULD_LOG_ERRORS: process.env["SHOULD_LOG_ERRORS"] ?? "true",
|
||||||
};
|
};
|
||||||
await $`bun db:migrate`.nothrow();
|
await $`bun db:migrate`;
|
||||||
const testProcess = await $({
|
const testProcess = await $({
|
||||||
verbose: true,
|
verbose: true,
|
||||||
quote: (arg) => arg,
|
quote: (arg) => arg,
|
||||||
|
|||||||
Reference in New Issue
Block a user