-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkarma.benchmark.conf.js
43 lines (42 loc) · 1020 Bytes
/
karma.benchmark.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
const webpack = require('webpack');
module.exports = function(config) {
config.set({
logLevel: config.LOG_INFO,
files: [
'node_modules/sinon/pkg/sinon.js',
'benchmark/vnode.js'
],
preprocessors: {
'benchmark/**/*.js': ['webpack']
},
webpack: {
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node-modules/
}
]
}
},
frameworks: [
'benchmark',
],
reporters: [
'benchmark',
],
plugins: [
'karma-chrome-launcher',
'karma-webpack',
'karma-benchmark',
'karma-benchmark-reporter',
],
browser: ['chrome'],
client: {
mocha: {
reporter: 'html'
}
}
});
};