ifError doesn't throw
未关闭
- 主要语言
- JavaScript
- 星标
- 1.9k
- 派生
- 359
- PR 合并指标
- 30 天内没有已合并 PR
描述
I think the problem is that ifError assertion which is simply "if (error) throw error;" is getting wrapped by assertWrapper which contains a try/catch. This stops the throw from escaping and exiting the test method where it appears. Is it possible that the fix is simply to avoid wrapping the ifError assertion?
贡献指南
这个仓库没有索引到贡献指南
调研方向
在 Nodeunit 源代码中定位 ifError 断言和 assertWrapper 的实现,然后跟踪该断言如何从测试方法中调用。如果现有测试未覆盖所报告的行为,请使用一个针对性测试重现该行为。完成的标准是 ifError 按预期传播错误,同时不破坏其他被包装的断言。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- testing
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100