forked from 3scale/porta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
50 lines (38 loc) · 1010 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* global module */
var webpackConfig = require('./config/webpack/test.js')
module.exports = function (config) {
'use strict'
config.set({
basePath: '',
autoWatch: true,
singleRun: true,
frameworks: ['jquery-3.2.1', 'jasmine-jquery', 'jasmine', 'fixture'],
preprocessors: {
'spec/javascripts/karma/index.spec.js': ['webpack']
},
files: [
'spec/javascripts/karma/jasmine.js',
'spec/javascripts/karma/fixtures.js',
'spec/javascripts/karma/index.spec.js'
],
webpack: webpackConfig,
webpackMiddleware: {
},
plugins: [
'karma-jasmine',
'karma-jasmine-jquery',
'karma-jquery',
'karma-fixture',
'karma-webpack',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-junit-reporter'
],
browserNoActivityTimeout: 60000,
browsers: ['ChromeHeadless', 'FirefoxHeadless'],
reporters: ['progress'],
junitReporter: {
outputDir: 'tmp/junit/karma'
}
})
}