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));