This repository has been archived by the owner on Apr 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
karma.conf.js
executable file
·54 lines (51 loc) · 1.88 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
52
53
54
process.env.CHROME_BIN = require('puppeteer').executablePath()
const webpack = require('./webpack.config');
delete webpack['entry'];
delete webpack['output'];
delete webpack['plugins'];
module.exports = (config) => {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
// 'legacy/spec/lib/jasmine-species/jasmine-grammar.js',
'legacy/spec/lib/jasmine-matchers.js',
// 'legacy/spec/lib/jasmine-ajax/mock-ajax.js',
'node_modules/jasmine-ajax/lib/mock-ajax.js',
'node_modules/jasmine-species/jasmine-grammar.js',
'legacy/spec/lib/i18n/i18n.js',
// 'legacy/spec/lib/matchers.js',
'legacy/spec/lib/analytics.js',
'node_modules/mithril/mithril.js',
'node_modules/underscore/underscore.js',
'node_modules/liquidjs/dist/liquid.js',
'node_modules/mithril-postgrest/mithril-postgrest.umd.js',
'node_modules/chart.js/Chart.js',
'node_modules/moment/moment.js',
'node_modules/select/dist/select.js',
'node_modules/jquery/dist/jquery.min.js',
'legacy/vendor/replaceDiacritics.js',
'legacy/spec/lib/mocks/*mock.js',
'legacy/spec/index.spec.js',
],
preprocessors: {
'legacy/spec/lib/mithril-query/mithril-query.js' : ['webpack'],
'legacy/spec/**/*.spec.js': ['webpack'],
'legacy/spec/index.spec.js': ['webpack']
},
webpack,
exclude: [],
reporters: ['spec'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
browsers: ['MyHeadlessChrome'],
customLaunchers: {
MyHeadlessChrome: {
base: 'ChromeHeadless',
flags: ['--headless', '--no-sandbox']
}
},
singleRun: true
});
};