-
Notifications
You must be signed in to change notification settings - Fork 2
/
karma.conf.js
95 lines (86 loc) · 1.96 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
module.exports = function (config) {
config.set({
basePath: './packages/app-decorators',
frameworks: [
'jspm',
'mocha',
'sinon',
'should',
],
plugins: [
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-mocha',
'karma-sinon',
'karma-should',
'karma-jspm',
'karma-safari-launcher',
'karma-opera-launcher',
],
browsers: [
'Chrome',
'ChromeCanary',
'Firefox',
'Safari',
'Opera',
//'FirefoxEnableWebComponents',
],
customLaunchers: {
FirefoxEnableWebComponents: {
base: 'Firefox',
prefs: {
'dom.webcomponents.enabled': true
}
},
},
files: [
{pattern: '**/*.js.map', included: false},
],
client: {
mocha: {
opts: './mocha.opts',
timeout: 60000,
},
},
jspm: {
browser: "tmp/jspm.browser.js",
config: "tmp/jspm.config.js",
loadFiles: [
// includes regenerator-runtime: useful for async await
'jspm_packages/npm/babel-polyfill*/dist/polyfill.js',
'test/decorators/*spec.js',
'test/libs/*spec.js',
'test/helpers/*spec.js',
'test/imports/*.js',
'test/mocks/*.js',
'!test/libs/pipe.spec.js',
],
serveFiles: [
// internal libs/files
'src/bootstrap.js',
'src/index.js',
'src/decorators/*.js',
'src/libs/*.js',
'src/helpers/*.js',
'src/configs/*.js',
'src/apps/*.js',
'src/datas/*.js',
'node_modules/@webcomponents/shadydom/shadydom.min.js',
'node_modules/core-js/**/*.js',
'node_modules/handlebars/dist/**/*.js',
'node_modules/webcomponents.js/webcomponents-lite.js',
'node_modules/named-js-regexp/lib/named-js-regexp.js',
'node_modules/extend/index.js',
'node_modules/underscore/underscore-min.js',
]
},
autoWatch: true,
singleRun: false,
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
});
if(process.env.TRAVIS){
config.browsers = ['Chrome_travis_ci'];
}
};