[nerv-test-utils] 1.4.beta.5 hooks can only be called in a stateless component
ZhangJian-3ti opened this issue · comments
Jian Zhang commented
如果用functional的方式,则jest test会报
invalid hooks call: hooks can only be called in a stateless component.
Yu Che commented
能做一个简单的复现吗
Jian Zhang commented
用 jest 跑的,怎么建立复现?
Yu Che commented
开一个新仓库,提交到 github
Jian Zhang commented
OK,我再测试下。
Jian Zhang commented
Fixed in 420319d