Skip to content

Commit 511adad

Browse files
authored
fix(jest/setup): to show actual error logs on CI when something is logged (#979)
1 parent fb2fafd commit 511adad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/setup-tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ global.window.app = {
1010
const logOrThrow = (log, method, messages) => {
1111
const warning = `console.${method} calls not allowed in tests`;
1212
if (process.env.CI) {
13-
log(...messages);
13+
log(warning, '\n', ...messages);
1414
throw new Error(warning);
1515
} else {
1616
log(colors.bgYellow.black(' WARN '), warning, '\n', ...messages);

0 commit comments

Comments
 (0)