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

47 lines
785 B
JavaScript

'use strict';
var path = require('path');
var basePath = '../../';
var absoluteBasePath = path.resolve(path.join(__dirname, basePath));
module.exports = function(karma) {
karma.set({
basePath: basePath,
frameworks: [
'browserify',
'mocha',
'chai',
'sinon-chai'
],
files: [
'test/**/*Spec.js'
],
preprocessors: {
'test/**/*Spec.js': [ 'browserify' ]
},
reporters: [ 'dots' ],
browsers: [ 'PhantomJS' ],
browserNoActivityTimeout: 30000,
singleRun: false,
autoWatch: true,
// browserify configuration
browserify: {
debug: true,
paths: [ absoluteBasePath ],
transform: [ [ 'stringify', { global: true, extensions: [ '.bpmn', '.xml', '.css' ] } ] ]
}
});
};