Skip to content

Commit af71503

Browse files
eps1lonljharb
authored andcommitted
Use ref prop type
1 parent ec2b2f2 commit af71503

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/enzyme-adapter-utils/src/createMountWrapper.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
3+
import { ref } from 'airbnb-prop-types';
34
import RootFinder from './RootFinder';
45

56
/* eslint react/forbid-prop-types: 0 */
@@ -89,7 +90,7 @@ export default function createMountWrapper(node, options = {}) {
8990
props: PropTypes.object.isRequired,
9091
wrappingComponentProps: PropTypes.object,
9192
context: PropTypes.object,
92-
forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
93+
forwardedRef: ref(),
9394
};
9495
WrapperComponent.defaultProps = {
9596
context: null,

0 commit comments

Comments
 (0)