-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkarma.conf.js
More file actions
40 lines (39 loc) · 848 Bytes
/
karma.conf.js
File metadata and controls
40 lines (39 loc) · 848 Bytes
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
'use strict';
module.exports = function(config) {
config.set({
autoWatch: true,
basePath: __dirname,
frameworks: ['mocha', 'chai'],
reporters: ['mocha'],
preprocessors: {
'test/**/*.js': ['babel']
},
files: [
'node_modules/forms-js/dist/forms-js.js',
'test/**/*.js',
'dist/index.html'
],
exclude: [],
port: 8989,
browsers: [
process.env.TRAVIS ? 'Chrome_travis_ci' : 'Chrome'
],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
plugins: [
'karma-firefox-launcher',
'karma-chrome-launcher',
'karma-mocha-reporter',
'karma-mocha',
'karma-chai',
'karma-babel-preprocessor'
],
singleRun: false,
colors: true,
logLevel: config.LOG_INFO
});
};