NervJS / nerv

A blazing fast React alternative, compatible with IE8 and React 16.
https://nerv.aotu.io
MIT License
5.43k stars 267 forks source link

Run test with Jest 24, throws ReactIs.isElement is not a function #130

Closed ZhangJian-3ti closed 5 years ago

ZhangJian-3ti commented 5 years ago

Latest Nervjs 1.4.0 with nerv-test-utils.

Any idea to resolve this? Thanks.

yuche commented 5 years ago

Use Jest 23 instead.

ZhangJian-3ti commented 5 years ago

@yuche Thank you very much for your quick response. I used use the Jest 23, but since it's missing some functionalities which I need for now( such as snapshotResolver... ), so I have to switch to Jest 24.

ZhangJian-3ti commented 5 years ago

partly resolved https://github.com/NervJS/nerv/commit/9fe346b762e3f26780fd17586d7cfadb0f405604

bsdfzzzy commented 5 years ago

@ZhangJian-3ti Hello, did you config nerv-is into moduleNameMapper? I encountered the same problem.