Check whether a React component contains another React component with Jest only
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 11.8k
- 派生
- 7.9k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 11
描述
How to check if a component contains another component with Jest only?
Suppose,
My code Structure is -
<Parent Component>
</Child Component>
</Parent Component>
I Want To Test Whether Child Component is present in Parent Component or Not.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
这是一个尚未回答的问题,而不是范围明确的变更,并且没有指出任何仓库文件、测试或入口点。首先在网站中找到相关的 React 和 Jest 文档,然后明确一项具体的文档更新,并定义使该 issue 完整所需的测试指导。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- documentation, testing
- Issue 类型
- 文档
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100