-
Notifications
You must be signed in to change notification settings - Fork 3
/
karma.conf.js
39 lines (37 loc) · 941 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
var path = require('path');
module.exports = function (config) {
config.set({
basePath: 'src',
singleRun: true,
frameworks: ['mocha', 'chai'],
reporters: ['dots'],
browsers: ['Firefox'],
files: [
'tests/index.js'
],
preprocessors: {
'tests/index.js': ['webpack']
},
webpack: {
resolve: {
extensions: ['', '.js', '.ts']
},
module: {
loaders: [
{
test: /\.ts$/,
exclude: 'node_modules',
loaders: ['awesome-typescript-loader']
}
]
}
},
webpackMiddleware: {
stats: {
color: true,
chunkModules: false,
modules: false
}
}
});
};