How to use Unistore action in JEST for shallow testing?
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript, react
调研方向
该 issue 提到了 React 应用、Jest、shallow testing,以及一个涉及未定义 action 的错误,但没有提供文件或测试用例。首先在 shallow-test setup 中复现该错误,并检查访问 Unistore action 的方式。当报告中的测试能够在没有 TypeError 的情况下运行,并且相关 action 的行为得到验证时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
I am facing an error while testing my react app from JEST. It shows an error as "TypeError: Cannot read property 'action' of undefined".
Can I know how do I solve this error?
- 主要语言
- JavaScript
- 星标
- 2.8k
- 派生
- 134
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
developit/unistore 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 48/100
-
难度 2/5 1-3 小时 新手友好度 48/100
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 25/100
-
Errors with WMR未关闭
难度 3/5 1-2 天 新手友好度 25/100
查看 developit/unistore 的全部 Issue
相似的 Issue
-
[BUG]: Prompt compressor crashes with TypeError when a past chat has a non-string response.text可能已有人在做 @ManojDevarajulu 今天认领。 未关闭possible bug
难度 2/5 1-3 小时 新手友好度 82/100
Mintplex-Labs/anything-llm#6737 ·
维护者通常 1 天内回复
-
check:passed feeds:add
难度 2/5 1 小时以内 新手友好度 62/100
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
codex-team/editor.js#3037 ·
-
No Code Attached Yet
难度 2/5 1-3 小时 新手友好度 72/100
joomla/joomla-cms#48626 ·
维护者通常 1 天内回复
-
complexity: trivial good first issue impact: low
难度 1/5 1 小时以内 新手友好度 78/100
ueberdosis/tiptap#8522 ·
维护者通常 1 天内回复