-
Notifications
You must be signed in to change notification settings - Fork 14
/
karma.conf.js
34 lines (31 loc) · 972 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
/* global module */
module.exports = function (config) {
'use strict';
var configuration = {
autoWatch: true,
singleRun: true,
frameworks: ['jspm', 'mocha', 'sinon-chai'],
jspm: {
stripExtension: false,
loadFiles: ['jspm_packages/github/webcomponents/[email protected]/webcomponents-lite.js', 'test/**/test.spec.js'],
serveFiles: ['./html.js', 'test/**/*.js', 'test/**/*.html', 'test/**/*.css', 'jspm_packages/**/*.js']
},
proxies: {
'/html.js': '/base/html.js',
'/test': '/base/test',
'/jspm_packages': '/base/jspm_packages'
},
browsers: ['Chrome', 'Firefox', 'Safari'], // web compoenents don't work in PhantomJS
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
reporters: ['mocha']
};
if (process.env.TRAVIS) {
configuration.browsers = ['Firefox', 'Chrome_travis_ci'];
}
config.set(configuration);
};