mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-13 21:26:44 +03:00
34 lines
867 B
JavaScript
Executable File
34 lines
867 B
JavaScript
Executable File
// IMPORTANT
|
|
// ---------
|
|
// This is an auto generated file with React CDK.
|
|
// Do not modify this file.
|
|
// Use `.scripts/user/pretest.js instead`.
|
|
|
|
require('babel-core/register');
|
|
require('babel-polyfill');
|
|
|
|
// Add jsdom support, which is required for enzyme.
|
|
var jsdom = require('jsdom').jsdom;
|
|
|
|
var exposedProperties = ['window', 'navigator', 'document'];
|
|
|
|
global.document = jsdom('');
|
|
global.window = document.defaultView;
|
|
Object.keys(document.defaultView).forEach((property) => {
|
|
if (typeof global[property] === 'undefined') {
|
|
exposedProperties.push(property);
|
|
global[property] = document.defaultView[property];
|
|
}
|
|
});
|
|
|
|
global.navigator = {
|
|
userAgent: 'node.js'
|
|
};
|
|
|
|
process.on('unhandledRejection', function (error) {
|
|
console.error('Unhandled Promise Rejection:');
|
|
console.error(error && error.stack || error);
|
|
});
|
|
|
|
require('./user/pretest.js');
|