Skip to content

Commit

Permalink
test(jest): reduce Jest log verbosity - make logs more compact
Browse files Browse the repository at this point in the history
Configure jest to override it's internal console logger with the
regular console object provided by the JS runtime.
This way it does not have the extra information printed that is
not useful for 99% of our use-cases (100% of the known ones).

Fixes hyperledger-cacti#2595

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Aug 8, 2023
1 parent 2aeecb2 commit 9b48c59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jest.config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions jest.setup.console.logs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const console = require("node:console");
global.console = console;

0 comments on commit 9b48c59

Please sign in to comment.