mirror of
https://gitee.com/la-vie/console-pro-free.git
synced 2024-12-26 11:49:14 +00:00
25 lines
599 B
JavaScript
25 lines
599 B
JavaScript
|
module.exports = function(karma) {
|
||
|
karma.set({
|
||
|
plugins: ['karma-browserify', 'karma-chai', 'karma-sinon', 'karma-mocha', 'karma-phantomjs-launcher'],
|
||
|
|
||
|
frameworks: ['browserify', 'chai', 'sinon', 'mocha'],
|
||
|
|
||
|
files: [
|
||
|
'src/**/*.js',
|
||
|
'test/**/*.js',
|
||
|
'./node_modules/phantomjs-polyfill/bind-polyfill.js'
|
||
|
],
|
||
|
|
||
|
preprocessors: {
|
||
|
'src/**/*.js' : ['browserify'],
|
||
|
'test/**/*.js': ['browserify']
|
||
|
},
|
||
|
|
||
|
browserify: {
|
||
|
debug: true
|
||
|
},
|
||
|
|
||
|
browsers: ['PhantomJS']
|
||
|
});
|
||
|
}
|