Open coderboyQ opened 3 years ago
I’d need more code than this - including your test code. Is this using shallow or mount?
Note that refs only work in mount.
Also, please always fill out the issue template in its entirety - it’s there for a reason.
在进行单元测试时,xxx.jsx目标文件中右form表单(用的是antd中的FORM组件)的重置方法(setFieldsValue),一直获取为空 下面一图为我打印的this 二图为报错打印