forked from Bahmni/openmrs-module-appointments-frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
44 lines (42 loc) · 1.39 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
42
43
44
const webpackConfig = require('./webpack.config.js');
module.exports = (config) => {
config.set({
basePath: '',
frameworks: ['jasmine'],
browsers: ['jsdom'],
browserNoActivityTimeout: 100000,
autoWatch: false,
singleRun: true,
files: [
{pattern: 'node_modules/moment/min/moment.min.js', watched: false},
{pattern: 'node_modules/q/q.js', watched: false},
{pattern: 'dist/appointment.js', watched: false},
{pattern: 'node_modules/angular-mocks/angular-mocks.js', watched: false},
{pattern: 'test/ng-test-constants.js', watched: false},
{pattern: 'test/support/*.js', watched: false},
{pattern: 'test/**/*spec.js', watched: false},
],
reporters: ['junit', 'progress', 'coverage'],
preprocessors: {
'dist/appointment.js': ['coverage'],
},
coverageReporter: {
reporters: [
{type: 'json', dir: 'coverage/'},
{type: 'html', dir: 'coverage/'},
{type: 'text-summary'}
]
},
junitReporter: {
outputFile: 'output/unit.xml',
suite: 'unit'
},
webpack: webpackConfig,
webpackMiddleware: {
stats: 'errors-only',
},
client: {
captureConsole: false
}
});
};