forked from DevExpress/DevExtreme-Intl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
33 lines (32 loc) · 880 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
32
33
module.exports = function(config) {
config.set({
browsers: ['PhantomJS', 'Chrome'],
frameworks: ['qunit'],
files: [
'node_modules/intl/dist/Intl.min.js',
'node_modules/intl/locale-data/complete.js',
{ pattern: 'tests/index.js', watched: false }
],
preprocessors: {
'tests/index.js': ['webpack']
},
plugins: [
'karma-webpack',
'karma-qunit',
'karma-junit-reporter',
'karma-phantomjs-launcher',
'karma-chrome-launcher'
],
reporters: [
'dots',
'junit'
],
junitReporter: {
outputDir: 'shippable/testresults/',
outputFile: 'test-results.xml'
},
webpackMiddleware: {
stats: 'errors-only'
}
});
};