We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b860241 commit 247e598Copy full SHA for 247e598
packages/react-scripts/fixtures/kitchensink/src/App.js
@@ -7,6 +7,9 @@ class BuiltEmitter extends React.Component {
7
8
componentDidMount() {
9
const { feature } = this.props
10
+
11
+ // Class components must call this.props.onReady when they're ready for the test.
12
+ // We will assume functional components are ready immediately after mounting.
13
if (!Component.isPrototypeOf(feature)) {
14
this.handleReady();
15
}
0 commit comments