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

34 lines
623 B
JavaScript

module.exports = function(karma) {
karma.set({
basePath: '../../',
frameworks: [ 'browserify', 'jasmine' ],
files: [
'test/spec/browser/**/*Spec.js',
'test/spec/integration/**/*Spec.js'
],
reporters: [ 'dots' ],
preprocessors: {
'test/spec/browser/**/*Spec.js': [ 'browserify' ],
'test/spec/integration/**/*Spec.js': [ 'browserify' ]
},
browsers: [ 'PhantomJS' ],
browserNoActivityTimeout: 15000,
singleRun: false,
autoWatch: true,
// browserify configuration
browserify: {
debug: true,
transform: [ 'brfs' ]
}
});
};