Skip to content

Commit 1700908

Browse files
committed
add extra karma config
- to show console.log in terminal in karma ^1.5.0 - See karma-runner/karma@89a7a1c#commitcomment-21009216
1 parent a9e1dd6 commit 1700908

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/jasmine/karma.conf.js

+8
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ function func(config) {
3535
// See CONTRIBUTING.md for additional notes on reporting.
3636
func.defaultConfig.logLevel = config.LOG_INFO;
3737

38+
// without this, console logs in the plotly.js code don't print to
39+
// the terminal since karma v1.5.0
40+
//
41+
// See https://github.com/karma-runner/karma/commit/89a7a1c#commitcomment-21009216
42+
func.defaultConfig.browserConsoleLogOptions = {
43+
level: 'log'
44+
};
45+
3846
config.set(func.defaultConfig);
3947
}
4048

0 commit comments

Comments
 (0)