-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
45 lines (38 loc) · 981 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
37
38
39
40
41
42
43
44
45
module.exports = (config) => {
config.set({
frameworks: ['mocha', 'chai'],
reporters: ['mocha'],
files: [
{ pattern: 'test/**/*.spec.js', watched: false },
],
preprocessors: {
'test/**/*.spec.js': [ 'webpack', 'sourcemap' ]
},
webpack: {
mode: 'development',
devtool: "inline-source-map",
module: {
noParse: /ffmpeg/,
rules: [
{
test: /\.m?js$/,
exclude: /(node_modules|ffmpeg)/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
plugins: [
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-proposal-class-properties"]
}
}
}
]
}
},
browsers: ['ChromeHeadless'],
webpackMiddleware: {
stats: 'errors-only'
}
})
}