enzymejs / enzymejs/enzyme

setFieldsValue

Open
#2,489 2 comments 0 reactions 0 assignees View on GitHub
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
![image](https://user-images.githubusercontent.com/40911444/103863001-07095e80-50fb-11eb-9287-980a808b7757.png)
二图为报错打印
![image](https://user-images.githubusercontent.com/40911444/103862800-b7c32e00-50fa-11eb-89bb-8ed392e1dd69.png)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.