You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to run the react-es6 example and getting this error :
Using Jest CLI v0.4.0
FAIL __tests__/CheckboxWithLabel-test.js (1.594s)
Warning: CheckboxWithLabel(...): No `render` method found on the returned component instance: you may have forgotten to define `render` in your component or you may have accidentally tried to render an element whose type is a function that isn't a React component.
● CheckboxWithLabel › it changes the text after click
- TypeError: Object [object Object] has no method 'render'
at ReactCompositeComponentMixin._renderValidatedComponentWithoutOwnerOrContext (/.../jest/examples/react-es6/node_modules/react/lib/ReactCompositeComponent.js:767:34)
at ReactCompositeComponentMixin._renderValidatedComponent (/.../jest/examples/react-es6/node_modules/react/lib/ReactCompositeComponent.js:793:14)
at wrapper [as _renderValidatedComponent] (/.../jest/examples/react-es6/node_modules/react/lib/ReactPerf.js:70:21)
at ReactCompositeComponentMixin.mountComponent (/.../jest/examples/react-es6/node_modules/react/lib/ReactCompositeComponent.js:227:30)
at wrapper [as mountComponent] (/.../jest/examples/react-es6/node_modules/react/lib/ReactPerf.js:70:21)
at Object.ReactReconciler.mountComponent (/.../jest/examples/react-es6/node_modules/react/lib/ReactReconciler.js:38:35)
at mountComponentIntoNode (/.../jest/examples/react-es6/node_modules/react/lib/ReactMount.js:248:32)
at ReactReconcileTransaction.Mixin.perform (/.../jest/examples/react-es6/node_modules/react/lib/Transaction.js:134:20)
at batchedMountComponentIntoNode (/.../jest/examples/react-es6/node_modules/react/lib/ReactMount.js:269:15)
at ReactDefaultBatchingStrategyTransaction.Mixin.perform (/.../jest/examples/react-es6/node_modules/react/lib/Transaction.js:134:20)
at Object.ReactDefaultBatchingStrategy.batchedUpdates (/.../jest/examples/react-es6/node_modules/react/lib/ReactDefaultBatchingStrategy.js:66:19)
at Object.batchedUpdates (/.../jest/examples/react-es6/node_modules/react/lib/ReactUpdates.js:110:20)
at Object.ReactMount._renderNewRootComponent (/.../jest/examples/react-es6/node_modules/react/lib/ReactMount.js:404:18)
at Object.wrapper [as _renderNewRootComponent] (/.../jest/examples/react-es6/node_modules/react/lib/ReactPerf.js:70:21)
at Object.ReactMount.render (/.../jest/examples/react-es6/node_modules/react/lib/ReactMount.js:493:32)
at Object.wrapper [as render] (/.../jest/examples/react-es6/node_modules/react/lib/ReactPerf.js:70:21)
at Object.ReactTestUtils.renderIntoDocument (/.../jest/examples/react-es6/node_modules/react/lib/ReactTestUtils.js:51:18)
at Spec.<anonymous> (/.../jest/examples/react-es6/__tests__/CheckboxWithLabel-test.js:22:30)
at jasmine.Block.execute (/.../jest/vendor/jasmine/jasmine-1.3.0.js:1065:17)
at jasmine.Queue.next_ (/.../jest/vendor/jasmine/jasmine-1.3.0.js:2098:31)
at null._onTimeout (/.../jest/vendor/jasmine/jasmine-1.3.0.js:2088:18)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
1 test failed, 0 tests passed (1 total)
Run time: 1.869s
npm ERR! Test failed. See above for more details.
The text was updated successfully, but these errors were encountered:
bench87
added a commit
to bench87/jest
that referenced
this issue
Apr 4, 2015
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Trying to run the react-es6 example and getting this error :
The text was updated successfully, but these errors were encountered: