forked from caitp/http
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
36 lines (29 loc) · 1.15 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
var sharedConfig = require('pipe/karma');
module.exports = function(config) {
sharedConfig(config);
config.set({
// list of files / patterns to load in the browser
files: [
'test-main.js',
{pattern: 'src/**/*.js', included: false},
{pattern: 'test/**/*.js', included: false},
{pattern: 'node_modules/rtts-assert/src/**/*.js', included: false},
{pattern: 'node_modules/di/src/*.js', included: false},
{pattern: 'node_modules/di/node_modules/es6-shim/es6-shim.js', included: false},
{pattern: 'node_modules/prophecy/src/*.js', included: false},
{pattern: 'node_modules/zone.js/zone.js', included: true}
],
preprocessors: {
'node_modules/prophecy/src/*.js': ['traceur'],
'node_modules/di/src/*.js': ['traceur'],
'node_modules/rtts-assert/src/**/*.js': ['traceur'],
'src/**/*.js': ['traceur'],
'test/**/*.js': ['traceur'],
},
reporters: ['dots']
});
// this should be in shared config (pipe)
config.traceurPreprocessor.options.typeAssertions = true;
config.traceurPreprocessor.options.typeAssertionModule = 'assert';
config.sauceLabs.testName = 'ngHttp';
};