-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkarma.conf.js
42 lines (42 loc) · 987 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
module.exports = function (config) {
config.set({
autoWatch: false,
basePath: '',
browsers: ['PhantomJS'],
colors: true,
files: [
'node_modules/mockfirebase/browser/mockfirebase.js',
'build/vendors.js',
'build/templates.js',
'build/app.js',
'src/**/*.spec.ts'
],
frameworks: ['jasmine'],
plugins: [
'karma-jasmine',
'karma-phantomjs-launcher',
'karma-coverage',
'karma-coveralls',
'karma-sauce-launcher'
],
reporters: ['dots', 'saucelabs', 'coverage', 'coveralls'],
preprocessors: {
'build/app.js': ['coverage']
},
singleRun: true,
typescriptPreprocessor: {
options: {
sourceMap: false,
target: 'ES5',
concatenateOutput: false
},
},
coverageReporter: {
type: 'lcov',
dir: 'coverage/'
},
sauceLabs: true,
sauceUser: process.env.SAUCE_USERNAME,
sauceKey: process.env.SAUCE_ACCESS_KEY,
});
};