forked from react-grid-layout/react-draggable
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma-phantomjs.conf.js
More file actions
30 lines (28 loc) · 788 Bytes
/
karma-phantomjs.conf.js
File metadata and controls
30 lines (28 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
'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}
}
}
},
});
};