forked from krakenjs/zoid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
41 lines (31 loc) · 1010 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
/* @flow */
/* eslint import/no-default-export: off */
import { getKarmaConfig } from 'grumbler-scripts/config/karma.conf';
import { WEBPACK_CONFIG_TEST } from './webpack.config';
export default function configKarma(karma : Object) {
const karmaConfig = getKarmaConfig(karma, {
basePath: __dirname,
webpack: WEBPACK_CONFIG_TEST
});
karma.set({
...karmaConfig,
files: [
'test/lib/react_v16.0.0.js',
'test/lib/react-dom_v16.0.0.js',
'test/lib/angular.min.js',
'test/lib/vue_v2.5.16.runtime.min.js',
'test/lib/angular-4.js',
{
pattern: 'test/zoid.js',
included: true,
served: true
},
...karmaConfig.files
],
preprocessors: {
...karmaConfig.preprocessors,
'src/index.js': [ 'webpack', 'sourcemap' ],
'src/**/*.js': [ 'sourcemap' ]
}
});
}