forked from mrichar1/jsonapi-vuex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
34 lines (32 loc) · 836 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
// Karma configuration
const src = './src/**/*.js'
const tests = './tests/unit/jsonapi-vuex.spec.js'
const ci = process.env.CI || process.env.TRAVIS || false
module.exports = function(config) {
config.set({
singleRun: ci,
browsers: ['FirefoxHeadless'],
customLaunchers: {
FirefoxHeadless: {
base: 'Firefox',
flags: ['-headless'],
},
},
frameworks: ['mocha', 'chai', 'sinon'],
files: ['node_modules/babel-polyfill/dist/polyfill.js', tests],
preprocessors: {
[src]: ['webpack'],
[tests]: ['webpack'],
},
webpack: require('./webpack.config'),
reporters: ['verbose', 'coverage'],
coverageReporter: {
dir: 'coverage',
reporters: [
{ type: 'text' },
{ type: 'text-summary' },
//{ type: 'html' }
],
},
})
}