scratch-html5/config/karma.conf.js

37 lines
726 B
JavaScript

module.exports = function(config){
config.set({
basePath : '../',
files : [
'test/artifacts/**/*.js',
'test/lib/**/*.js',
'test/unit/**/*.js',
'js/sound/SoundDecoder.js',
'js/sound/**/*.js',
'js/util/**/*.js',
'js/**/*.js',
'node_modules/jasmine-jquery/lib/jasmine-jquery.js',
'node_modules/underscore/underscore.js'
],
exclude : [
],
preprocessors: {
'*.html': ['html2js']
},
autoWatch : true,
frameworks: ['jasmine'],
browsers : ['Chrome'],
plugins : [
'karma-jasmine',
'jasmine-jquery',
'karma-html2js-preprocessor',
'karma-chrome-launcher',
'karma-firefox-launcher'
]
})}