forked from i18next/i18next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.backward.conf.js
50 lines (41 loc) · 1.13 KB
/
karma.backward.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
module.exports = function(karma) {
karma.set({
frameworks: ['mocha', 'expect', 'sinon', 'browserify'],
files: [
//'vendor/external.js',
'test/backward/**/*.compat.js',
{ pattern: 'test/backward/locales/**/*.json', watched: true, included: false, served: true },
],
proxies: {
'/locales': 'http://localhost:9877/base/test/backward/locales',
},
reporters: ['spec'],
preprocessors: {
'test/backward/**/*.compat.js': ['browserify'],
'test/backward/compatibility/**/*.js': ['browserify'],
},
browsers: ['HeadlessChrome'],
customLaunchers: {
HeadlessChrome: {
base: 'ChromeHeadless',
flags: ['—no-sandbox'],
},
},
port: 9877,
//logLevel: 'LOG_DEBUG',
//singleRun: true,
//autoWatch: false,
//
// client: {
// mocha: {
// reporter: 'spec', // change Karma's debug.html to the mocha web reporter
// ui: 'tdd'
// }
// },
// browserify configuration
browserify: {
debug: true,
transform: [['babelify', { presets: ['@babel/preset-env'] }] /*, 'brfs' */],
},
});
};