forked from openfoodfoundation/openfoodnetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathng-test.conf.js
69 lines (61 loc) · 1.85 KB
/
ng-test.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = function(config) {
config.set({
basePath: '../',
frameworks: ['jasmine'],
files: [
APPLICATION_SPEC,
{
pattern: 'app/assets/**/*.js.erb',
type: 'js'
},
'app/assets/javascripts/shared/angular-local-storage.js',
'app/assets/javascripts/shared/ng-infinite-scroll.min.js',
'app/assets/javascripts/shared/angular-slideables.js',
'app/assets/javascripts/admin/*.js*',
'app/assets/javascripts/admin/*/*.js*', // Pull in top level files in each folder first (often these are module declarations)
'app/assets/javascripts/admin/**/*.js*',
'app/assets/javascripts/darkswarm/*.js*',
'app/assets/javascripts/darkswarm/**/*.js*',
'app/assets/javascripts/shared/shared.js.coffee',
'spec/javascripts/unit/**/*.js*'
],
exclude: [
'**/.#*',
'app/assets/javascripts/darkswarm/all.js.coffee',
'app/assets/javascripts/darkswarm/overrides.js.coffee',
'app/assets/javascripts/darkswarm/i18n.js.erb',
'app/assets/javascripts/admin/util.js.erb'
],
preprocessors: {
'**/*.coffee': ['coffee']
},
coffeePreprocessor: {
options: {
sourceMap: true
},
transformPath: function(path) {
return path.replace(/\.coffee$/, '.js');
}
},
autoWatch: true,
browsers: ['CustomHeadlessChrome'],
customLaunchers: {
CustomHeadlessChrome: {
base: 'ChromeHeadless',
flags: [
'--no-sandbox',
'--remote-debugging-port=9222',
'--enable-logging',
'--disable-background-timer-throttling',
'--disable-renderer-backgrounding',
'--proxy-bypass-list=*',
'--proxy-server=\'direct://\''
]
}
},
junitReporter: {
outputFile: 'log/testacular-unit.xml',
suite: 'unit'
}
});
};