Skip to content

Commit 23ee633

Browse files
devversiontinayuangao
authored andcommitted
build: fix karma console log (#3484)
Karma recently introduced a breaking change, that **hasn't** been noted (karma-runner/karma#2582). Karma doesn't show any `console.log` calls anymore, because the priority order of the `LogLevel`'s has been changed. The default log leve for the `browserConsoleLog` does no longer include the `LOG` log-level.
1 parent 11dec36 commit 23ee633

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/karma.conf.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,13 @@ module.exports = (config) => {
9494
captureTimeout: 120000,
9595
browsers: ['Chrome_1024x768'],
9696

97-
singleRun: false
97+
singleRun: false,
98+
99+
browserConsoleLogOptions: {
100+
terminal: true,
101+
level: 'log'
102+
}
103+
98104
});
99105

100106
if (process.env['TRAVIS']) {

0 commit comments

Comments
 (0)