49 lines
785 B
JavaScript
49 lines
785 B
JavaScript
'use strict';
|
|
|
|
module.exports = function(karma) {
|
|
karma.set({
|
|
|
|
frameworks: [
|
|
'browserify',
|
|
'mocha',
|
|
'sinon-chai'
|
|
],
|
|
|
|
files: [
|
|
'test/spec/**/*Spec.js',
|
|
],
|
|
|
|
reporters: [ 'dots' ],
|
|
|
|
preprocessors: {
|
|
'test/spec/**/*Spec.js': [ 'browserify' ]
|
|
},
|
|
|
|
browsers: [ 'ChromeHeadless' ],
|
|
|
|
browserNoActivityTimeout: 30000,
|
|
|
|
singleRun: true,
|
|
autoWatch: false,
|
|
|
|
// browserify configuration
|
|
browserify: {
|
|
debug: true,
|
|
transform: [
|
|
[ 'babelify', {
|
|
global: true,
|
|
babelrc: false,
|
|
presets: [ 'env' ]
|
|
} ],
|
|
[ 'stringify', {
|
|
global: true,
|
|
extensions: [
|
|
'.bpmn',
|
|
'.css'
|
|
]
|
|
} ]
|
|
]
|
|
}
|
|
});
|
|
};
|