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

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