mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-27 07:13:44 +01:00
ebb8c89207
* Upgrade to React 16.0.0 * Disable some uncritical tests while chai-enzyme remains incompatible
15 lines
359 B
JavaScript
15 lines
359 B
JavaScript
import { JSDOM } from 'jsdom';
|
|
import Enzyme from 'enzyme';
|
|
import Adapter from 'enzyme-adapter-react-16';
|
|
|
|
Enzyme.configure({ adapter: new Adapter() });
|
|
|
|
const { window } = new JSDOM('', {
|
|
userAgent: 'node.js',
|
|
});
|
|
|
|
Object.keys(window).forEach(property => {
|
|
if (typeof global[property] === 'undefined') {
|
|
global[property] = window[property];
|
|
}
|
|
});
|