codeceptjs / codeceptjs/CodeceptJS

[feature-request] REST helper rejectOnError config option

未關閉
#1,293 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement good first issue REST
主要語言
JavaScript
星號
4.2k
分支
757
平均合併
2 天 9 小時
30 天內合併 PR
16

描述

Just that. How do you feel about a config option for the REST helper to make the promises reject whenever there is an error response, ex. status codes 4XX, 5XX, etc? (I personally think it should be the default behaviour)

I could create a pull request for this, as I have implemented it already on a custom helper on the project I'm working on.

貢獻指南

開啟貢獻指南

研究方向

從 REST helper 的入口點開始,檢查目前如何處理錯誤回應,以及如何定義 helper 設定。在變更行為之前找到 helper 的測試;完成標準是:可設定的 reject-on-error 選項涵蓋 4XX 和 5XX 回應,並為啟用時和預設情況下的行為提供測試。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript, node.js
領域
api
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。