-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
40 lines (37 loc) · 912 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
const webpackConfig = require('./webpack.config.js');
// karma.conf.js -- karma configuration
// if you import your existing 'webpack.config.js' setup here,
// be sure to read the note about 'entry' below.
module.exports = (config) => {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'tests/**/*.test.js',
'src/styles/*.scss',
],
preprocessors: {
'tests/**/*.test.js': ['webpack'],
'src/styles/*.scss': ['scss'],
},
scssPreprocessor: {
options: {
sourceMap: true,
includePaths: ['bower_components'],
},
},
webpack: webpackConfig,
reporters: ['mocha'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: true,
concurrency: Infinity,
browserConsoleLogOptions: {
terminal: true,
level: '',
},
});
};