forked from StarterSquad/ngseed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
51 lines (46 loc) · 1.31 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
module.exports = function (config) {
config.set({
files: [
'tests-main.js',
{ pattern: 'source/js/**/*.js', included: false },
{ pattern: 'source/js/**/*.coffee', included: false },
{ pattern: 'source/js/**/*.map', included: false },
{ pattern: 'source/vendor/**/*.js', included: false },
{ pattern: 'source/vendor/**/*.map', included: false },
],
exclude: [
'source/vendor/**/*spec.js',
'source/vendor/**/*spec.coffee'
],
browsers: ['PhantomJS'],
// Chrome, ChromeCanary, Firefox, IE (only Windows), Opera, PhantomJS, Safari (only Mac)
reporters: [
'dots',
// 'coverage',
],
preprocessors: {
//'source/js/modules/**/*.js': 'coverage',
'source/js/modules/**/*.spec.coffee': 'coffee'
},
coffeePreprocessor: {
options: { sourceMap: true },
transformPath: function (filepath) {
return filepath.replace(/spec\.coffee$/, 'coffee.spec.js');
}
},
// Optionally, configure the reporter:
//
// coverageReporter: {
// type: 'html',
// dir: 'coverage/',
// },
basePath: './',
captureTimeout: 60000,
colors: true,
frameworks: ['jasmine', 'requirejs'],
logLevel: config.LOG_INFO,
port: 9876,
reportSlowerThan: 500,
runnerPort: 9100,
});
};