Completely updated React, fixed #11, (hopefully)

This commit is contained in:
2018-03-04 19:11:49 -05:00
parent 6e0afd6e2a
commit 34e5f5139a
13674 changed files with 333464 additions and 473223 deletions

View File

@@ -5,8 +5,8 @@ export interface MountOptions {
}
export default function createMount(
options?: Partial<MountOptions>
options?: Partial<MountOptions>,
): typeof mount & {
attachTo: HTMLElement;
cleanUp: Function;
cleanUp(): void;
};

View File

@@ -1,7 +1,5 @@
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
// weak
import { unmountComponentAtNode } from 'react-dom';

View File

@@ -4,6 +4,4 @@ export interface RenderOptions {
render: typeof render;
}
export default function createRender(
options?: Partial<RenderOptions>
): typeof render & { cleanUp: Function };
export default function createRender(options?: Partial<RenderOptions>): typeof render;

View File

@@ -1,7 +1,5 @@
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import { render as enzymeRender } from 'enzyme';

View File

@@ -2,11 +2,8 @@ import { shallow, EnzymeSelector } from 'enzyme';
export interface ShallowOptions {
shallow: typeof shallow;
otherContext: Object;
dive: boolean;
untilSelector: EnzymeSelector;
}
export default function createShallow(
options?: Partial<ShallowOptions>
): typeof shallow;
export default function createShallow(options?: Partial<ShallowOptions>): typeof shallow;

View File

@@ -1,7 +1,5 @@
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
// weak
import { shallow as enzymeShallow } from 'enzyme';

View File

@@ -1,4 +1,4 @@
export default function getClasses<T = { [name: string]: string }>(
element: React.ReactElement<any>,
options?: Partial<{ withTheme: boolean }>
options?: Partial<{ withTheme: boolean }>,
): T;

View File

@@ -1,5 +1,4 @@
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import _extends from 'babel-runtime/helpers/extends';
import * as ns from 'react-jss/lib/ns';
import { SheetsRegistry } from 'jss';
import createShallow from './createShallow';

View File

@@ -2,5 +2,5 @@ import { CommonWrapper } from 'enzyme';
export default function until<P = any, S = any>(
selector: string,
options: { context: Object }
options: { context: any },
): CommonWrapper<P, S>;

View File

@@ -1,7 +1,5 @@
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
// weak
function shallowRecursively(wrapper, selector, _ref) {

View File

@@ -1,3 +1 @@
export default function unwrap(
element: React.ReactElement<any>
): React.ReactElement<any>
export default function unwrap(element: React.ReactElement<any>): React.ReactElement<any>;