test: don't log console errors when SHOULD_LOG_ERRORS is false

This commit is contained in:
2024-06-15 05:39:38 -04:00
parent 231ed4bde4
commit 20ca88fda9
2 changed files with 4 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ $.env = {
HOME: process.env.HOME,
TURSO_URL: process.env.TURSO_URL ?? "http://127.0.0.1:3001",
TURSO_AUTH_TOKEN: process.env.TURSO_AUTH_TOKEN ?? "asd",
SHOULD_LOG_ERRORS: process.env.SHOULD_LOG_ERRORS ?? "true",
};
await $`bun db:migrate`.nothrow();
await $({

View File

@@ -1 +1,3 @@
console.error = () => {};
if (process.env.SHOULD_LOG_ERRORS === "false") {
console.error = () => {};
}