Skip to content

Commit 3566d92

Browse files
committed
update karma configs to use explicit plugins
1 parent 3e523e6 commit 3566d92

File tree

5 files changed

+26
-5
lines changed

5 files changed

+26
-5
lines changed

build/karma.base.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,11 @@ module.exports = {
3939
webpack: webpackConfig,
4040
webpackMiddleware: {
4141
noInfo: true
42-
}
42+
},
43+
plugins: [
44+
'karma-jasmine',
45+
'karma-mocha-reporter',
46+
'karma-sourcemap-loader',
47+
'karma-webpack'
48+
]
4349
}

build/karma.cover.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ module.exports = function (config) {
1010
{ type: 'text-summary', dir: '../coverage', subdir: '.' }
1111
]
1212
},
13-
singleRun: true
13+
singleRun: true,
14+
plugins: base.plugins.concat([
15+
'karma-coverage',
16+
'karma-phantomjs-launcher'
17+
])
1418
})
1519

1620
// add babel-plugin-istanbul for code intrumentation

build/karma.dev.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ var base = require('./karma.base.config.js')
33
module.exports = function (config) {
44
config.set(Object.assign(base, {
55
browsers: ['Chrome'],
6-
reporters: ['progress']
6+
reporters: ['progress'],
7+
plugins: base.plugins.concat([
8+
'karma-chrome-launcher'
9+
])
710
}))
811
}

build/karma.sauce.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ module.exports = function (config) {
9595
},
9696
// mobile emulators are really slow
9797
captureTimeout: 300000,
98-
browserNoActivityTimeout: 300000
98+
browserNoActivityTimeout: 300000,
99+
plugins: base.plugins.concat([
100+
'karma-sauce-launcher'
101+
])
99102
}))
100103
}

build/karma.unit.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ module.exports = function (config) {
44
config.set(Object.assign(base, {
55
browsers: ['Chrome', 'Firefox', 'Safari'],
66
reporters: ['progress'],
7-
singleRun: true
7+
singleRun: true,
8+
plugins: base.plugins.concat([
9+
'karma-chrome-launcher',
10+
'karma-firefox-launcher',
11+
'karma-safari-launcher'
12+
])
813
}))
914
}

0 commit comments

Comments
 (0)