forked from react-R/reactR
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
35 lines (35 loc) · 1.12 KB
/
Copy pathkarma.conf.js
File metadata and controls
35 lines (35 loc) · 1.12 KB
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
module.exports = function (config) {
config.set({
frameworks: ['mocha', 'chai', 'source-map-support'],
files: ['inst/www/react-tools/react-tools.js', 'js-tests/js-tests.jsx'],
preprocessors: {
'js-tests/*.js': ['webpack'],
'js-tests/*.jsx': ['webpack']
},
webpack: {
module: {
rules: [
{
test: [/\.js$/, /\.jsx$/],
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env', '@babel/preset-react']
}
}
]
},
devtool: 'inline-source-map'
},
webpackMiddleware: {
stats: 'errors-only'
},
reporters: ['progress'],
port: 9876, // karma web server port
colors: true,
logLevel: config.LOG_INFO,
browsers: ['ChromeHeadless'],
autoWatch: false,
// singleRun: false, // Karma captures browsers, runs the tests and exits
concurrency: Infinity
})
}