Skip to content

Commit fd096d3

Browse files
committed
karma is now successfully surpported
1 parent 99814f7 commit fd096d3

File tree

6 files changed

+5786
-81
lines changed

6 files changed

+5786
-81
lines changed

karma.conf.js

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,38 @@ module.exports = function (config) {
44
frameworks: ['mocha'],
55
files: ['./test/*'],
66
plugins: [
7-
'karma-mocha', "karma-phantomjs-launcher", "karma-chrome-launcher"
7+
"karma-chrome-launcher",
8+
"karma-phantomjs-launcher",
9+
"karma-firefox-launcher",
10+
"karma-ie-launcher",
11+
//"karma-edge-launcher",
12+
'karma-mocha',
13+
'karma-webpack',
14+
'karma-babel-preprocessor',
815
],
9-
// test results reporter to use
16+
preprocessors: {
17+
'./test/*.js': ['webpack']
18+
},
1019
// possible values: 'dots', 'progress'
1120
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
1221
reporters: ['progress'],
1322
port: 9876,
1423
colors: true,
1524
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
1625
logLevel: config.LOG_INFO,
26+
autoWatch: true,
27+
client: {
28+
// only available when autoWatch is on
29+
captureConsole: true,
30+
},
1731

18-
// enable / disable watching file and executing tests whenever any file changes
19-
autoWatch: false,
20-
browsers: ['PhantomJS'],
21-
22-
// Continuous Integration mode
23-
// if true, Karma captures browsers, runs the tests and exits
32+
browsers: [
33+
'Chrome',
34+
//'Firefox',
35+
//'IE',
36+
//'PhantomJS',
37+
//'Edge',
38+
],
2439
singleRun: false,
2540
concurrency: Infinity
2641
})

0 commit comments

Comments
 (0)