forked from ccampbell/rainbow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
52 lines (44 loc) · 1.26 KB
/
karma.conf.js
File metadata and controls
52 lines (44 loc) · 1.26 KB
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
46
47
48
49
50
51
52
/* eslint-env node */
/* eslint no-var: false */
module.exports = function(config) {
config.set({
basePath: './',
plugins: [
'karma-rollup-preprocessor',
'karma-mocha-reporter',
'karma-chrome-launcher',
'karma-phantomjs-launcher',
'karma-sourcemap-loader',
'karma-mocha',
'karma-chai',
'karma-chai-sinon',
'karma-chai-as-promised'
],
frameworks: ['mocha', 'chai-sinon', 'chai-as-promised', 'chai'],
files: [
'node_modules/babel-polyfill/dist/polyfill.js',
'dist/rainbow.js',
{pattern: 'test/**/*-test.js'}
],
logLevel: config.LOG_INFO,
preprocessors: {
'test/**/*-test.js': ['rollup', 'sourcemap']
},
rollupPreprocessor: {
rollup: {
plugins: [
require('rollup-plugin-buble')({
transforms: {
dangerousForOf: true
}
})
]
},
bundle: {
sourceMap: 'inline'
}
},
reporters: ['mocha'],
colors: true
});
};