-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
33 lines (31 loc) · 853 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
module.exports = function (config) {
var wiredep = require('wiredep');
var bowerFiles = wiredep({devDependencies: true})['js'];
config.set({
basePath: '',
frameworks: ['mocha', 'chai', 'sinon-chai'],
exclude: ['src/**/*.e2e.js'],
files: bowerFiles.concat([
'node_modules/sinon-chai/sinon.js',
'src/**/*.js',
'src/**/*.spec.js'
]),
plugins: [
'karma-mocha',
'karma-chai',
'karma-sinon-chai',
'karma-chrome-launcher',
'karma-phantomjs-launcher',
'karma-mocha-reporter'
],
client: {
mocha: {
reporter: 'html',
ui: 'bdd'
}
},
reporters: ['mocha'],
port: 9876,
colors: true
});
};