-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
36 lines (36 loc) · 1010 Bytes
/
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
// eslint-disable-next-line no-undef
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'chai'],
files: ['dist/bbj-masks.js', 'test/providers/**/*.js', 'test/**/*.test.js'],
preprocessors: {
'test/**/*.js': ['sourcemap' /** , 'babel' */],
'dist/**/*.js': ['sourcemap']
},
// babelPreprocessor: {
// options: {
// presets: ['@babel/preset-env'],
// sourceMap: 'inline',
// },
// filename: function(file) {
// return file.originalPath.replace(/\.js$/, '.es5.js')
// },
// sourceFileName: function(file) {
// return file.originalPath
// },
// },
reporters: ['mocha'],
port: 9877, // karma web server port
colors: true,
logLevel: config.LOG_INFO,
browsers: ['Chrome', 'FirefoxHeadless', 'Edge'],
autoWatch: false,
concurrency: Infinity,
customLaunchers: {
FirefoxHeadless: {
base: 'Firefox',
flags: ['-headless']
}
}
})
}