-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf.js
50 lines (38 loc) · 1.04 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
45
46
47
48
49
50
/**
* Created by clicktronix on 12.11.16.
*/
'use strict';
let webpackConfig = require('./webpack.config.js');
module.exports = function (config) {
config.set({
basePath: 'dev/__tests__/',
browsers: ['PhantomJS'],
frameworks: ['mocha', 'sinon', 'chai'],
files: [
'../../packages/canteen.min.js',
'../../packages/easeljs-0.8.2.min.js',
'*Test.js'
],
reporters: ['mocha'],
preprocessors: {
'*.js': ['webpack']
},
webpack: {
module: webpackConfig.module,
resolve: {
alias: {
sinon: 'sinon/pkg/sinon.js',
},
}
},
plugins: [
require('karma-webpack'),
require('karma-mocha'),
require('karma-chai'),
require('karma-sinon'),
require('karma-sinon-chai'),
require('karma-mocha-reporter'),
require('karma-phantomjs-launcher')
]
});
};