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