forked from jazz-community/rtc-workitem-bulk-mover-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
41 lines (40 loc) · 1.33 KB
/
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
module.exports = function (config) {
config.set({
// Those browsers will used for test execution
// requires 'karma-<browser>-launcher' npm package to be installed
// for native (non phantom js) browsers, the browser has to be installed locally
browsers: ['PhantomJS', 'Chrome', 'Firefox'],
// the unit testing framework to be used
frameworks: ['jasmine'],
// the files karma will lock at
files: ['src/**/*.test.js'],
// defines how the test results are reported
reporters: ['spec'],
// transpile source and test files, allows usage of latest
// JS features in both test files and files under test
preprocessors: {
'src/**/*.js': ['webpack']
},
// end all browser sessions and test run after a single run
singleRun: true,
// use webpack combined with babel to transpile the source
webpack: {
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['es2015'],
}
}
]
}
},
webpackMiddleware: {
// suppress webpack compilation and chunking output
noInfo: true
}
});
};