codeceptjs/CodeceptJS

[feature-request] REST helper rejectOnError config option

開放

#1,293 建立於 2018年10月30日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (725 個分叉)batch import
RESTenhancementgood first issue

倉庫指標

星標
 (3,956 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南