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

@@ -20,9 +20,9 @@ var _enzyme = require('enzyme');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var babelPluginFlowReactPropTypes_proptype_Element = require('react').babelPluginFlowReactPropTypes_proptype_Element || require('prop-types').any; // weak
// Generate an enhanced mount function.
// weak
function createMount() {
var options1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var _options1$mount = options1.mount,

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

@@ -19,8 +19,6 @@ var _enzyme = require('enzyme');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// Generate a render to string function.
var babelPluginFlowReactPropTypes_proptype_Element = require('react').babelPluginFlowReactPropTypes_proptype_Element || require('prop-types').any;
function createRender() {
var options1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var _options1$render = options1.render,

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

@@ -22,9 +22,9 @@ var _until2 = _interopRequireDefault(_until);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var babelPluginFlowReactPropTypes_proptype_Element = require('react').babelPluginFlowReactPropTypes_proptype_Element || require('prop-types').any; // weak
// Generate an enhanced shallow function.
// weak
function createShallow() {
var options1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var _options1$shallow = options1.shallow,

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

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