jestjs - TypeError: ReactDOM.render is not a function -
i using enzyme's mount method test react component. getting error, knows why?
fail src__tests__\components\dashboard\widgets\livenessprobetest.js (29.386s) ? livenessprobe.js > shows correct header
typeerror: reactdom.render not function
@ object.reacttestutils.renderintodocument (node_modules\react\lib\reacttestutils.js:76:21) @ renderwithoptions (node_modules\enzyme\build\react-compat.js:187:26) @ new reactwrapper (node_modules\enzyme\build\reactwrapper.js:94:59) @ mount (node_modules\enzyme\build\mount.js:19:10) @ _mountcomponent (src\__tests__\components\dashboard\widgets\livenessprobetest.js:35:10) @ mountcomponent (src\__tests__\components\dashboard\widgets\livenessprobetest.js:51:12) @ object.<anonymous> (src\__tests__\components\dashboard\widgets\livenessprobetest.js:64:19)
Comments
Post a Comment