From 0480083fb3814ec12595544fdb1275cf0e763a86 Mon Sep 17 00:00:00 2001 From: Gadi Cohen Date: Wed, 16 Feb 2022 17:15:10 +0200 Subject: [PATCH] Revert "chore(tests): don't use console.dir in tests" This reverts commit 1115edf381b23a5ee02582d9f4d28ac6e25f2163. --- src/lib/validateAndCoerceTypes.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/validateAndCoerceTypes.ts b/src/lib/validateAndCoerceTypes.ts index 0efa8809..ccec28d5 100644 --- a/src/lib/validateAndCoerceTypes.ts +++ b/src/lib/validateAndCoerceTypes.ts @@ -179,9 +179,7 @@ ajv.addSchema(schema); /* istanbul ignore next */ const logObj = - typeof process !== "undefined" && - process?.stdout?.isTTY && - process?.env?.NODE_ENV !== "test" + typeof process !== "undefined" && process?.stdout?.isTTY ? (obj: any) => console.dir(obj, { depth: 4, colors: true }) : (obj: any) => console.log(JSON.stringify(obj, null, 2));