-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathkarma.conf.js
35 lines (34 loc) · 987 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
34
35
/* global process */
process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = function(config) {
config.set({
browsers: ['ChromeHeadless'],
frameworks: ['qunit'],
files: [
{ pattern: 'tests/no-intl-mock.js', watched: false },
'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-chrome-launcher'
],
reporters: [
'dots',
'junit'
],
junitReporter: {
outputDir: 'shippable/testresults/',
outputFile: 'test-results.xml'
},
webpackMiddleware: {
stats: 'errors-only'
}
});
};