blob: 78600a02a50ac39636aa5338da04fbb25f43994c [file] [log] [blame]
'use strict';
const baseConfig = require('./karma.conf.js');
module.exports = function(config) {
// Set base config options.
baseConfig(config);
// Then set some of our own, to run PhantomJS. It's a bit older, which is the idea.
// We want to make sure our CJS build still works on old environments.
config.set({
// Shim required for phantom
frameworks: ['phantomjs-shim', 'jasmine'],
browsers: ['PhantomJS_custom'],
// Includes Map/Set
files: [
'specs/draggable-phantom.spec.jsx'
],
preprocessors: {
'specs/draggable-phantom.spec.jsx': ['webpack']
},
customLaunchers: {
PhantomJS_custom: {
base: 'PhantomJS',
options: {
viewportSize: {width: 1024, height: 768}
}
}
},
});
};