-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathkarma.conf.js
More file actions
31 lines (28 loc) · 841 Bytes
/
karma.conf.js
File metadata and controls
31 lines (28 loc) · 841 Bytes
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
const webpackConfig = require('./webpack.config.karma');
module.exports = function(config) {
config.set({
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['webpack', 'mocha', 'chai'],
plugins: [
'karma-webpack',
'karma-sourcemap-loader',
'karma-mocha',
'karma-chai',
'karma-chrome-launcher',
'karma-spec-reporter'
],
browsers: ['ChromeHeadless'],
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
files: ['src/index.ts', 'src/**/*.test.ts'],
preprocessors: {
'src/index.ts': ['webpack', 'sourcemap'],
'src/{rpc,sse,types}/**/*.ts': ['webpack', 'sourcemap']
},
reporters: ['spec'],
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true
}
});
};