1
0
mirror of synced 2025-12-08 22:58:46 +08:00
Files
eruda/karma.conf.js
2017-08-26 10:59:55 +08:00

45 lines
1.2 KiB
JavaScript

module.exports = function (config)
{
config.set({
basePath: '',
frameworks: ['jquery-1.8.3'],
files: [
'eruda.js',
'test/init.js',
'test/lib/jasmine.js',
'node_modules/karma-jasmine/lib/boot.js',
'node_modules/karma-jasmine/lib/adapter.js',
'test/lib/jasmine-jquery.js',
'test/console.js',
'test/elements.js',
'test/features.js',
'test/info.js',
'test/network.js',
'test/resources.js',
'test/snippets.js',
'test/sources.js',
// 'test/settings.js'
],
plugins: [
'karma-jasmine',
'karma-jquery',
'karma-phantomjs-launcher',
'karma-wrap-preprocessor'
],
preprocessors: {
'test/*.js': ['wrap']
},
wrapPreprocessor: {
template: '(function () { <%= contents %> })()'
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['PhantomJS'],
singleRun: true,
concurrency: Infinity
});
};