forked from bvaughn/react-virtualized-select
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
31 lines (31 loc) · 839 Bytes
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = function (config) {
config.set({
browsers: ['PhantomJS'],
frameworks: ['jasmine'],
files: ['source/tests.js'],
preprocessors: {
'source/tests.js': ['webpack', 'sourcemap']
},
junitReporter: {
outputDir: (process.env.CIRCLE_TEST_REPORTS || 'public') + '/karma',
suite: 'karma'
},
singleRun: true,
plugins: [
require('karma-coverage'),
require('karma-jasmine'),
require('karma-webpack'),
require('karma-spec-reporter'),
require('karma-junit-reporter'),
require('karma-sourcemap-loader'),
require('karma-phantomjs-launcher')
],
reporters: ['progress', 'coverage'],
webpack: require('./webpack.config.dev'),
coverageReporter: {
dir: 'coverage',
file: 'coverage.json',
type: 'json'
}
})
}