-
Notifications
You must be signed in to change notification settings - Fork 6
/
karma.conf.js
44 lines (38 loc) · 1.13 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
process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = function(config) {
config.set({
preprocessors: {
'**/*.js': ['sourcemap']
},
frameworks: ['jasmine'],
reporters: ['spec'],
browsers: ['ChromeHeadless'],
files: [
'node_modules/angular/angular.min.js',
'node_modules/angular-mocks/angular-mocks.js',
'node_modules/ng-table/bundles/ng-table.min.js',
'node_modules/tinycolor2/dist/tinycolor-min.js',
'node_modules/angularjs-color-picker/dist/angularjs-color-picker.min.js',
'node_modules/papaparse/papaparse.min.js',
// for fixtures
'node_modules/jquery/dist/jquery.min.js',
'node_modules/jasmine-jquery/lib/jasmine-jquery.js',
'node_modules/babel-polyfill/dist/polyfill.js',
'build/js/imports.js',
'build/lib/**/*.js',
'build/mainDialog/**/*.js',
'build/test/**/*.js',
// Fixtures
{
pattern: 'test/fixtures/*',
watched: true,
served: true,
included: false
},
{
pattern: 'build/maps/**/*.js.map',
included: false
},
]
});
};