setFieldsValue
Open
Need More Information
- Dominant language
- JavaScript
- Stars
- 19.8k
- Forks
- 2k
- PR merge metrics
- No merged PRs in 30d
Description
在进行单元测试时,xxx.jsx目标文件中右form表单(用的是antd中的FORM组件)的重置方法(setFieldsValue),一直获取为空
下面一图为我打印的this

二图为报错打印

Contributor guide
Research direction
The report concerns an xxx.jsx form using Ant Design's Form and setFieldsValue, with screenshots as the only diagnostic material. Start by locating the relevant form and its unit test or a minimal reproduction; done means identifying why setFieldsValue is empty and capturing the expected behavior in a reproducible test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100