Skip to content

Commit

Permalink
Revert "chore(tests): don't use console.dir in tests"
Browse files Browse the repository at this point in the history
This reverts commit 1115edf.
  • Loading branch information
gadicc committed Feb 16, 2022
1 parent 1115edf commit 0480083
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/validateAndCoerceTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 0480083

Please sign in to comment.