-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
40 lines (36 loc) · 1.03 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
// Karma configuration
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['browserify', 'polymer', 'tap'],
files: [
// need to watch for polymer.html, webcomponents.js and polymer deps
{
pattern: 'bower_components/**',
// and serve them if requested in nested includes
included: false, served: true, watched: true
},
// include main test files
'tests/*.js',
],
// run browserify on test files before including them to get require
preprocessors: {
'tests/*.js': [ 'browserify' ]
},
// use the karma-polymer module to link import polymer + component
polymer: {
platform: 'bower_components/webcomponentsjs/webcomponents-lite.js',
src: [
'bower_components/polymer/polymer.html',
'linkr-list.html'
]
},
reporters: ['tap'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO, // config.LOG_DEBUG
autoWatch: false,
browsers: ['Chrome'],
singleRun: true
});
};