bpmn-js/test/config/karma.unit.js

47 lines
792 B
JavaScript
Raw Normal View History

'use strict';
var path = require('path');
var basePath = '../../';
var absoluteBasePath = path.resolve(path.join(__dirname, basePath));
2014-03-11 14:54:36 +00:00
module.exports = function(karma) {
karma.set({
basePath: basePath,
2014-03-11 14:54:36 +00:00
2015-10-09 23:35:41 +00:00
frameworks: [
'browserify',
'mocha',
'chai',
'sinon-chai'
],
2014-03-11 14:54:36 +00:00
files: [
2015-10-09 23:35:41 +00:00
'test/**/*Spec.js'
2014-03-11 14:54:36 +00:00
],
2014-03-11 14:54:36 +00:00
preprocessors: {
'test/**/*Spec.js': [ 'browserify', 'env' ]
2014-03-11 14:54:36 +00:00
},
2015-10-09 23:35:41 +00:00
reporters: [ 'dots' ],
browsers: [ 'PhantomJS' ],
2014-03-11 14:54:36 +00:00
browserNoActivityTimeout: 30000,
2014-07-17 07:02:40 +00:00
2014-03-11 14:54:36 +00:00
singleRun: false,
autoWatch: true,
// browserify configuration
browserify: {
debug: true,
paths: [ absoluteBasePath ],
transform: [ [ 'stringify', { global: true, extensions: [ '.bpmn', '.xml', '.css' ] } ] ]
2014-03-11 14:54:36 +00:00
}
});
};